Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-26-2013, 12:37 AM   PM User | #1
artysta
New to the CF scene

 
Join Date: Feb 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
artysta is an unknown quantity at this point
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
artysta is offline   Reply With Quote
Old 02-26-2013, 01:45 PM   PM User | #2
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 941
Thanks: 7
Thanked 95 Times in 95 Posts
WolfShade is an unknown quantity at this point
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".
WolfShade is offline   Reply With Quote
Old 02-26-2013, 03:11 PM   PM User | #3
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,364
Thanks: 18
Thanked 348 Times in 347 Posts
sunfighter is on a distinguished road
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>
sunfighter is offline   Reply With Quote
Old 02-26-2013, 03:50 PM   PM User | #4
artysta
New to the CF scene

 
Join Date: Feb 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
artysta is an unknown quantity at this point
thanks guys, I will try this
artysta is offline   Reply With Quote
Old 02-27-2013, 04:28 AM   PM User | #5
artysta
New to the CF scene

 
Join Date: Feb 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
artysta is an unknown quantity at this point
it worked, thanks for the tip!
artysta is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:01 AM.


Advertisement
Log in to turn off these ads.