Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Javascript code for fitting a background image to the window

Reply
Thread Tools

Javascript code for fitting a background image to the window

 
 
Mahesh
Guest
Posts: n/a
 
      09-06-2003
Hi,

I need a javascript code for fitting the background image to the
window. Help will be appreciated.

Thanks,

Mahesh
 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      09-06-2003
http://www.velocityreviews.com/forums/(E-Mail Removed) (Mahesh) writes:

> I need a javascript code for fitting the background image to the
> window.


window.resize(widthOfBackground,heightOfBackground );


Sorry, it can't be done. There is no part of standard CSS that
allows you to scale a background image, with or without Javascript.

/L
--
Lasse Reichstein Nielsen - (E-Mail Removed)
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
desperately need help in code in c++ and fitting functions in a frame crazzy_devil Software 0 05-01-2010 02:20 PM
Fitting to window size in Firefox. Carmen Firefox 0 05-02-2008 01:26 PM
Image not fitting right.. Ganesh HTML 8 12-04-2006 12:29 PM
fitting code, statistical library To Forum C++ 3 07-18-2004 07:13 PM
IFRAME fitting in a window Raja Kannan Javascript 0 07-04-2004 01:04 AM



Advertisments