Dynadot .com Transfer Sale — only $10.49, coupon COMSUMMER26

Espn like Right column

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

kevy47

New Member
Impact
0
ive been racking my brain for days trying to work this out.

Basically i like the 'sidebar popup' as i call it that sites are using to fill monitors with 1024 + resolution, but doesnt load and therefore doesnt result in a horizontal scroll bar in 800x600 size.

Examples are:

http://espn.go.com
http://www.nba.com
http://www.news.com.au

Hopefully someone could help me, ive looked all through the site but don't know the terminology to search for.

thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Not exactly sure what you mean... you mean something like detecting the screen resolution??
 
0
•••
I think he wants to detect the screen reso and then display some sort of table on the right to fill that space... like on ESPN
 
0
•••
Javascript! ^_^

Google it :P
 
0
•••
I would have google'd it if i knew what i was googling.

idevisedesign, thats exactly what i mean. Ill start search for detecting screen resolution.

thanks
 
0
•••
Be aware that even if someone is using 1024x768 they may have their window at a much smaller size. Therefore the javascript would be useless for those people. ;)
 
0
•••
Rowan W said:
Be aware that even if someone is using 1024x768 they may have their window at a much smaller size. Therefore the javascript would be useless for those people. ;)

oh, yeah.

its all so hard.

Think ill scrap that idea.
 
0
•••
it's not that hard.....
 
0
•••
Just make the browser automatically maximize.
 
0
•••
via http://www.webgamebuilder.com/

PHP:
<?php

session_start();


// Set the Screen Width if passed in URL

if (isset($HTTP_GET_VARS["width"])) {

session_register("windowWidth");

session_register("windowHeight");

$HTTP_SESSION_VARS["windowWidth"] = $HTTP_GET_VARS["width"];

$HTTP_SESSION_VARS["windowHeight"] = $HTTP_GET_VARS["height"];

}


// If screen width not passed, determine size and reload page

if (! session_is_registered("windowWidth")) {

echo ('<script language="JavaScript"><!--' . "

");

echo ('width = screen.width;' . "

");

echo ('height = screen.height;' . "n");

echo ('location.href="' . WEB_ROOT . 'index.php?width=" + width + "&height=" + height ');

echo ('//--></script>');

} else {



...... this is where you put the rest of your web page ........



}

 

?>

Of course a few things will need to be implemented in that script for security (IE: checking that the resolutions are in fact numbers)
 
0
•••
idevisedesign said:
Just make the browser automatically maximize.
WOE WOE WOE! I don't maximise my browser windows for a REASON, if I come to a site that resizes my browser window then I'm gone. And I will not return.
 
0
•••
Olitt — high-converting AI websites, only from $1/moOlitt — high-converting AI websites, only from $1/mo

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back