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
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Drop down menu mod not working, please help.

    This is our code so far. The problem i am having is i want to have a spoiler menu that drops down so it stops something ridiculas like 10 videos from youtube getting sent data. We need this mod so more than 2 videos can be posted on one page. The main idea was for a spoiler so you push a button and that box opens up while the other stays closed, but this method failed.
    BBCode input:
    Code:
    [youtube]{TEXT}[/youtube]
    HTML Code:
    <h6>
    <span onclick="if (this.innerHTML != 'show spoiler&raquo;') { this.innerHTML = 'show spoiler&raquo;' } else { this.innerHTML = '&laquo;hide spoiler<br /><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/{TEXT}'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/{TEXT}' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object>'}">show spoiler&raquo;</span></h6>
    Sorry about the messy code but this is really annoying me now. It works on forums such as the QJ ones, even though the one i am proposing is a different method.

    Result atm:
    http://www.p-jmusic.ardo.org.uk/foru...8aacaadd82568d
    Last edited by FLA3H; 12-12-2006 at 06:49 PM.

  • #2
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bump?

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Anchor

    Usually, bumping a thread without additional info, explanation or a progress report is useless and can land you an infraction, but try an a (anchor) element instead of a span; I'm not familiar enough with JavaScript to know whether this helps, but this sort of construction usually features a's instead of spans and yours isn't doing anything at the moment.

    Edit:
    Okay, scratch that; spans work just the same (although the default link behaviour makes this a little more intuitive). I did replace the object with a test span with text; maybe your object is the problem, but I never worked with those either.
    Last edited by ronaldb66; 12-13-2006 at 01:47 PM.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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