View Full Version : [SOLVED] Full Screen Link on Webpage
chavad
29th December 10, 11:33 AM
Dear Everyone,
Is there a way to link the body tag on a webpage to another webpage? Here is an example: http://ryanmcginley.com/.
Thank you!
Chava Drummond
chrishirst
29th December 10, 12:02 PM
Is there a way to link the body tag on a webpage to another webpage? Obviously as you know of an example it must be!
However your "example" is simply a large image link.
<div id="bg_box">
<a href="http://ryanmcginley.com/Life_Adjustment_Center"><img src="http://ryanmcginley.com/admin/Life_Adjustment_Center/large/Tom_Golden_Tunnel.jpg" /></a>
</div>
#bg_box
{
width: 100%;
height: 100%;
top: 0;
/* left: -30px; */
position: absolute;
z-index: 0;
overflow: hidden;
}
#bg_box img
{
width: 100%;
min-width: 1100px;
position: fixed;
height: auto;
z-index: 0;
}
* html #bg_box img
{
min-width: 1200px;
position: fixed;
width: expression(document.body.clientWidth < 1300 ? "1300px" : "100%" );
}
/* IE6 fixed position fix for the background */
* html div#bg_box {
left: auto; top: auto;
left: expression( ( 0 - bg_box.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
top: expression( ( 0 - bg_box.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}
chavad
29th December 10, 12:26 PM
Dear Chris,
Thanks so much - I looked at the code and thought it used JQuery; I was even looking to see if it was a linked image but didn't see what you saw.... My student, on the other hand, has no background image, but he wants the whole page (body, it seems to me) to be a link - any ideas about that? I've done research and don't see anything about it.
Chava
chrishirst
29th December 10, 03:15 PM
<body onclick="window.location='url'">
or you can set display: block on an anchor element.
chavad
29th December 10, 10:13 PM
Dear Chris,
Fantastic - it worked!! Thanks so much!!
Chava
uswah
11th June 11, 07:26 PM
your most is quite informative and useful keep it up
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.