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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    onClick Function Help

    Hello all!

    This is my website: www.damianplisko.com

    Im trying to figure out a way to have the div to the left of the video show different information everytime the user clicks on the number below the video box. The problem is that the numbers below the video already have a function assigned to them to change the source of the video.

    Help would be appreciated

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Can you just add that functionality to the existing functions? Are you using jQuery?
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,026
    Thanks
    23
    Thanked 588 Times in 587 Posts
    onclick can execute a number of things. Call a function to change the div. Also suggest you add an ID to the div. If the ID were target the number one button could do this:
    Code:
    <li><a href="#" onClick="document.getElementById('target').innerHTML = 'A differt story'; addDynamicSource('DemoReel_Plisko'); return false;">1</a></li>

  • #4
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks guys, I will try this

  • #5
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    it worked, thanks for the tip!


  •  

    Posting Permissions

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