It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

expandable background image in CSS or Javascript

expandable background image in CSS or Javascript

Postby matteoraggi on Sun Nov 16, 2008 2:23 am

is it possible to include an expandable background image in CSS or Javascript
in a simple HTML or XTML page
the background for the WHOLE page, not inside a table or cell

here an example in flash:
http://www.wowlab.net/wow/system01.html
matteoraggi
 
Posts: 3
Joined: Sun Nov 16, 2008 12:10 am

Re: expandable background image in CSS or Javascript

Postby BennettRich on Fri Dec 12, 2008 3:25 am

It is realised both in CSS and in Javascript.
BennettRich
 
Posts: 27
Joined: Wed Dec 10, 2008 9:23 am

Re: expandable background image in CSS or Javascript

Postby rangana on Fri Dec 12, 2008 5:49 am

@ BennetRich,

This is possible with CSS alone.

This thread has been answered on another forum, and it was well said:
http://www.htmlforums.com/showpost.php? ... ostcount=3

Hope that was helpful for both of you.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: expandable background image in CSS or Javascript

Postby BennettRich on Fri Dec 12, 2008 6:43 am

Explain why cannot be Javascript?
BennettRich
 
Posts: 27
Joined: Wed Dec 10, 2008 9:23 am

Re: expandable background image in CSS or Javascript

Postby rangana on Fri Dec 12, 2008 7:00 am

Because CSS can do it. ;)

Why would you choose to do it via JS when CSS can do it btw?

JS could be disabled, CSS couldn't.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: expandable background image in CSS or Javascript

Postby BennettRich on Fri Dec 12, 2008 7:10 am

I do not speak that I wish to do it through Javascript, I tell that that through Javascript it too is realised. Though also process is more difficult...
BennettRich
 
Posts: 27
Joined: Wed Dec 10, 2008 9:23 am

Re: expandable background image in CSS or Javascript

Postby rangana on Fri Dec 12, 2008 7:15 am

Could you show me how you would do it in JS, and at the same time, provide an unobtrusive approach.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: expandable background image in CSS or Javascript

Postby BennettRich on Fri Dec 12, 2008 7:25 am

I have written that in Javascript less convenient, but nevertheless is realised, you understand me? I seem to me all the same is right.
BennettRich
 
Posts: 27
Joined: Wed Dec 10, 2008 9:23 am

Re: expandable background image in CSS or Javascript

Postby rangana on Fri Dec 12, 2008 7:28 am

Could you show your the script you've made.

That way, me, as well as other members of the board could learn from it.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 6 guests