Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
js file not working properly for tag replacements.
Old 08-07-2008, 12:15 AM js file not working properly for tag replacements.
Super Talker

Posts: 119
Trades: 0
Im using the script for Dynamic Text Replacement as provided in this article and have everything working, up to the javascript portion of it.

Ive got the script loaded, and used a <span> tag around my header text, set the script to replace span, pointed to the path of the pixel.png file (stored in a different folder) but when my page loads it doesnt replace the span, and doesnt load my header.

Right now im just using the php script without the js, but id like to avoid having a messy url in my code.

ive tried setting the replaceselector value to h2, span, headertext (my css style for this element) etc, and it just doesn't seem to load it properly.

I cant figure out what im doing wrong..... anyone have an idea?

Last edited by chrishirst; 08-07-2008 at 05:24 AM..
BigJohnny is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-07-2008, 05:25 AM Re: js file not working properly for tag replacements.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I cant figure out what im doing wrong..... anyone have an idea?
Without seeing what you have done. ...



... No
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-07-2008, 09:07 AM Re: js file not working properly for tag replacements.
Super Talker

Posts: 119
Trades: 0
whoops... sorry
www.teamspeakdisplay.com
the script tag is only in my index right now. and ive commented it out.

i set the .js file to replace "headertext" which is the div id of the main header title.
I dont know if it isn't loading the pixel.png file properly(path could be wrong?) or if it just isn't working for some other reason.

the link to the script file
http://www.teamspeakdisplay.com/HTML...Replacement.js
BigJohnny is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to js file not working properly for tag replacements.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38915 seconds with 12 queries