Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Regarding the screen resolution javasript for 'Ravindra G'??
Please give me just 1 example in your code for it to load this css script if the resolution is 1024x768:
<style type="text/css">
body {
background-image:url("http://khushman1.googlepages.com/gmap-backup.jpg%2...
background-repeat:no-repeat;
}
</style>
The code you provided was :
<script type="text/javascript">
var windowWidth = 0, windowHeight = 0;
if( typeof( window.innerWidth ) == 'number' )
{
//Non-IE
windowWidth = window.innerWidth;
windowHeight = window.innerHeight;
}
else if( document.documentElement && (
document.documentElement.clientWidth ||
document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
}
else if( document.body && ( document.body.clientWidth ||
document.body.clientHeight ) )
{
//IE 4 compatible
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
</script>
if( typeof( window.innerWidth ) == 'number' )
In the above line, do I have to add a number in place of 'number'. If yes, what number ??
I have to go offline now. Could you provide me with an email id or something so I can contact you if there is a problem. Please!!
Thanks :)
1 Answer
- 1 decade agoFavorite Answer
Check this link for your requirement.
http://archivist.incutio.com/viewlist/css-discuss/...
I don't know how to set the repeat style of body background.