Reply LinkBack Thread Tools Search this Thread
Old 16-01-2004, 15:43   #1 (permalink)
marshallburnz
Registered User
 
Join Date: Jan 2004
Posts: 1
anyone know how do you make links open full screen?

[font=Verdana]anyone know how do you make links open full screen? i've been copying bits of javascript code from all over the place but with no luck! all i can do is make very page from the index onwards into the site operate as full screen as a whole. i am trying to open individual pages full screen with no browser attributes from a text link on an html page. can anyone help with some code?
  Reply With Quote
Old 16-01-2004, 18:36   #2 (permalink)
roto
Floating libation anyone?
 
roto's Avatar
 
Join Date: Apr 2003
Location: El Barco del Amor
Posts: 4,650
Send a message via AIM to roto Send a message via Yahoo to roto
[font=Verdana]don't do this...everyone hates it
__________________
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!

New to interweb design? Your friends at dt can help.
  Reply With Quote
Old 17-01-2004, 04:45   #3 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,935
Better yet, offer the user a choice of fullscreen or regular (i.e. in the current window).
Popups and fullscreen windows, especially unannounced ones, are becoming increasing hated by users in general. It's best to offer a choice rather than risk pi**ing users off, the result being that they leave your site - never to return.
Can't say pharaoh than that.

Here's the basic form of a javascript for triggering a fullscreen popup (grumble, grumble)

In the header* or an external js file:
(* if in the header, nest the following code between the <script type="text/javascript"> … </script> tags.)

Code:
function doPop() { mainWin = window.open('mainpage.html','windowName','top=0,left=0,width='+screen.availWidth+',height='+screen.availHeight+',directories=no,location=no,resizable=no,scrollbaras=no,status=no,toolbar=no'); }

In the markup:
Code:
<a href="mainpage.html">Enter site (current window)</a><br /> <a href="mainpage.html" onclick="doPop(); return false;">Enter site (fullscreen popup)</a>

Belts 'n' braces.

Here's a good primer on javascript popup windows.
http://tech.irt.org/articles/js128/
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8