Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2009
    Posts
    156
    Thanks
    47
    Thanked 0 Times in 0 Posts

    How is this site transitioning/fading their background?

    I really like this but cannot figure out how it's done ...

    http://www.roanokeairport.com

    Can someone assist?

  • #2
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,530
    Thanks
    45
    Thanked 259 Times in 256 Posts
    That was easy

    Javascript. I just disabled it and the entire site failed

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    They are putting a flash object in a div and set the div to position:fixed so it doesn't move. Same effect can be achieved with jquery and probably the jquery cycle plugin. This is their code.

    Code:
    <div id="divFlashBg"><object height="100%" width="100%" align="left" id="flashROABg" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param value="transparent" name="wmode"><param value="sameDomain" name="allowScriptAccess"><param value="false" name="allowFullScreen"><param value="/flashROABg.swf" name="movie"><param value="high" name="quality"><param value="exactfit" name="scale"><param value="lt" name="salign"><param value="#ffffff" name="bgcolor">	<embed height="100%" width="100%" align="left" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="false" allowscriptaccess="sameDomain" name="flashROABg" bgcolor="#ffffff" salign="lt" scale="exactfit" quality="high" src="/flashROABg.swf"></object></div>
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •