Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 03-06-2007, 10:30 PM Changing background
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
So I have a site, picture this: The site is designed a background image that looks like the stage of a theater. Content goes where the backdrop would be. I have a few pages that will be displaying video in the center and I would like to do an effect of fading the lighting to the background when navigating to this page and then fade up when navigating away.

So it goes:
regular page -> click link to a video site -> everything but stage bg and title with links goes away (blank backdrop) -> fade everything -> show video then wait for replay or click to navigate back elsewhere -> fade back up -> go to desired page

I'm thinking there might be a css way with javascript perhaps
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-06-2007, 10:53 PM Re: Changing background
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Well if you want a real fade, you'll need to hook the javascript to a timer, and do some tricky stuff to be able to set opacity. Flash might be a better choice. Or, I don't know if this is possible, but you could look into animated gifs.

But you can grab an html element with javascript ( document.getElementById('x') ) and then change its class or background image.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to Changing background
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.62232 seconds with 12 queries