NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page help getting this to link..

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-28-2004, 06:10 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Apr 2004
Location: South East UK
Posts: 10
martyn187 is an unknown quantity at this point
 



help getting this to link..


hi all,

I have a script that changes text every hour. I E:

case 0 :show="Hello";break;
case 1 :show="Hello1";break;
case 2 :show="Hello2";break;

There are no problems with that part. However the document.write that displays it looks like this:

document.write "+ link + ")

How can I get that to be a link, I've done it before but can't remember how.

Tar as ever!
martyn187 is offline  
Old 04-28-2004, 09:36 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
im no js expert but shoudlnt it be

document.write("" + link + "")

or something similar to that? because anything insdie the " wouldnt acutally get parsed would it?!?!
adam_uk is offline  
Old 04-28-2004, 09:56 AM THREAD STARTER               #3 (permalink)
New Member
Join Date: Apr 2004
Location: South East UK
Posts: 10
martyn187 is an unknown quantity at this point
 



you are right, I typed it quickly ;-)

The actual page with it on has it correctly
martyn187 is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:13 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger