View Full Version : Scrolling title help
Aragoth
04-25-2006, 03:17 PM
I'm designing a webpage and I want the title in the header to scroll. What do I have to do? I tried the marquee code, but I can't get it to work...
djr33
04-25-2006, 07:21 PM
marquee only works in IE, and is, therefore, a bad plan.
Look on dynamicdrive main for scripts.
anonymouse
04-25-2006, 10:23 PM
you could probably alter this script http://www.dynamicdrive.com/dynamicindex11/arrowtitle.htm
to create the effect of scrolling. Do something like
{
step++
if (step==7) {step=1}
if (step==1) {document.title='title'}
if (step==2) {document.title='itle '}
if (step==3) {document.title='tle t'}
if (step==4) {document.title='le ti'}
if (step==5) {document.title='e tit'}
if (step==6) {document.title=' titl'}
setTimeout("anim()",200);
}
that would simulate scrolling.
anderson
04-26-2006, 04:06 AM
I have the following Dynamic Drive cross-browser marquee on my web site and it works in IE, Safari, and Firefox/Mozilla:
http://www.dynamicdrive.com/dynamicindex2/cmarquee.htm
The only problem is if you have used other javascript on the page, it might not work. But, there is a work-around for two javascripts on the same page. (I also have Dynamic Drive hvmenus on my home page.) To see both of these in action, go to www.andersonptsa.com and look at View Source page.
If you need help on the work-around, go to:
http://www.javascriptkit.com/javatutors/eventaction4.shtml. This will send you in the right direction on what you must add and what you must delete to make both javascripts work.
Aragoth
04-27-2006, 03:13 PM
Thanks...
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.