Current location: Hot Scripts Forums » General Web Coding » JavaScript » JavaScript Scroll help...


JavaScript Scroll help...

Reply
  #1 (permalink)  
Old 04-29-05, 10:18 AM
Thomas82 Thomas82 is offline
Newbie Coder
 
Join Date: Apr 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
JavaScript Scroll help...

Hi,

I have a JavaScript scroll that is filled with text, and there is a index-file, a css-file and a JS-file (inc images for the scroll). The problem is that the whole thing seems to be tied to a hyperlink image that is called "about". When I delete the image from the code the text in the scroll dissapear.

I think this is the problem:
<img name="abo" src="img/nav_off.gif">
and...
onClick="loadContent('abo')"

Here's the scroll: http://www.evergame.se/scroll/index.html

I dont know how to make this work, so please help me out here

Thanks/Thomas
Reply With Quote
  #2 (permalink)  
Old 04-30-05, 08:42 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
The problem is that when you delete the image tag and the function loadContent fires (it's called in the initscroller function with the argument 'abo') there is no longer a tag named 'abo'.
Hence, you get an error...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible 2 stop a javascript function w/ other jv command? noni JavaScript 1 01-19-05 11:48 AM
how to make javascript works in email? seyyen JavaScript 1 12-01-04 10:20 AM
javascript /forms /checkboxes /arrays ski_woman JavaScript 1 11-16-04 04:08 AM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 03:01 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 10:47 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.