www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > HTML

    HTML Discussion and technical support for building, using and deploying HTML sites.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 03-24-2007, 08:43 PM
    Lammox Lammox is offline
    Registered User
     
    Join Date: Mar 2007
    Posts: 1
    Clicking links through images

    Hi all,

    I'm having an unusual problem, and was wondering if anyone could help. I'm working on a friend's myspace, adding falling objects (petal images, animated gifs) thanks to some code from one of those silly myspace layout sites. The falling images are achieved with the marquee tag, so each falling petal looks something like this:

    <marquee behavior="scroll" direction="down" scrollamount="4" style="position:absolute; left:12%; top:0; width:300; height:500; .."><img src="http://img181.imageshack.us/img181/3050/petal.gif"></marquee>

    The problem is, it all works fine in IE, but in firefox, the user can't click on the links that lie underneath the 500 pixel area that the falling petals' height covers. In myspace, these are links like "Home", "Browse", Search" etc.

    So I guess I'm wondering if there's any way to allow the links to be clicked despite images "falling" in front of them. Will give z-index a try, but the friend wants them to fall on top of all the text and images.

    Can anyone suggest anything?
    Reply With Quote
      #2  
    Old 03-25-2007, 09:26 AM
    WebJoel's Avatar
    WebJoel WebJoel is offline
    Super Moderator
     
    Join Date: Dec 2005
    Location: American, living in Toronto, ON. CANADA
    Posts: 6,668
    Apart from being deprecated, "<marquee>" would make an area that is layered over-top of whatever is beneith it. While a z-index might solve this, it also puts the falling petals 'behind' whatever~.

    There are javascripts that can do this, and they use little images that fall, leaving the 'freespace' behind them 'active' should the user wish to click-under. And, the javascript can even make the falling leaves (or snowflakes, -whatever) themselves, be 'clickable links'.

    Go to www.dynamicdrive.com and search their document effects section, -you'll find maybe a dozen or so examples of this.

    -Here, -I found one right off:

    http://www.dynamicdrive.com/dynamicindex3/leaves.htm
    __________________
    Help Save Ana My Portal: I Build WebPages
    Pricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html
    AUP: http://www.jupitermedia.com/corporate/privacy/aup.html
    I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey
    Internet.com freelancers
    Reply With Quote
      #3  
    Old 03-25-2007, 04:05 PM
    Major Payne's Avatar
    Major Payne Major Payne is offline
    Alzheimer Patient
     
    Join Date: May 2005
    Location: Gold Coast (MS)
    Posts: 1,257
    Hi:

    Good solution, but the only problem with JavaScript is that MySpace strips it out if used. Guess they were having too many problems with it. As WebJoel suggested, moving the petals behind would be better. I made an example and made it as a link too:

    <marquee behavior="scroll" direction="down" scrollamount="4" style="position:absolute; left:100px; top:10px; width:100%; height:800px;"><a href="http://imageshack.us"><img src="http://img220.imageshack.us/img220/9332/aniblinkingeyesthrupagegu8.gif" alt="Blinking Eye"></a></marquee>


    I haven't tried using it with the z-index, but you can play with your original. I tried using yours, but couldn't get the image at http://img181.imageshack.us/img181/3050/petal.gif.

    Kinda fun to play with tho.

    Ron
    __________________
    Ron

    Reply With Quote
      #4  
    Old 03-25-2007, 05:46 PM
    WebJoel's Avatar
    WebJoel WebJoel is offline
    Super Moderator
     
    Join Date: Dec 2005
    Location: American, living in Toronto, ON. CANADA
    Posts: 6,668
    Dude... -that's kinda scary.
    __________________
    Help Save Ana My Portal: I Build WebPages
    Pricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html
    AUP: http://www.jupitermedia.com/corporate/privacy/aup.html
    I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey
    Internet.com freelancers
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    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 Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 03:36 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.