...

View Full Version : Link in a scrolling message



Jays1
08-02-2008, 04:08 AM
Hello Everyone

What I am trying to do is the following.

I have a scrolling message that is in a form and I want to have the text Lose weight... and Pomesteen Power.. as a link to other pages on the same website.

Any help would be great and the code is below

Thanks



<form name="msgtest">

<input type="text" name="welcome" size="160">

</form>
<script language="Javascript">
<!-- -->
var ScrollMsg= "Lose weight and feel great with our Clean 9 Nutritional Cleanse and Weight Management Program only $114...."
+"Pomesteen Power Multi-Pack only $69.90 - the perfect anti-oxidant drink... "
var CharacterPosition=0;
var spacer = "... ";

function StartScrolling() {

document.msgtest.welcome.value=ScrollMsg.substring(CharacterPosition,ScrollMsg.length)+

ScrollMsg.substring(0, CharacterPosition);
CharacterPosition++;
if(CharacterPosition > ScrollMsg.length) CharacterPosition=0;
// Set a Timer to call StartScrolling() at an interval
window.setTimeout("StartScrolling()",200); }

StartScrolling();</script>

Philip M
08-02-2008, 09:53 AM
http://javascript.internet.com/text-effects/in-marquee-links.html

However, this works in IE only. Cross-browser solutions are much more difficult.

abduraooft
08-02-2008, 10:05 AM
http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm

Jays1
08-03-2008, 03:48 AM
That is exactly what I was looking for.

Thanks for your help.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum