spiper
12-07-2012, 04:53 PM
Hi All,
I am a newbie to HTML. I have only been designing and building websites for 4 weeks!! So please be gentle! lol
I have used some 'marquee' scrolling text in a new website project. This script and content will be in the same place on nearly every page. I would like to try and code the script to obtain the content from another file (if possible). So that by amending this file, I can change the scrolling text on all pages.
Ideally, I need to know the script to put in to the page and also how to set up the file so that the script reads it correctly and scrolls the text within this.
This is my current simple script:
<marquee behavior="scroll" scrollamount="4" direction="left" onmouseover="this.stop();" onmouseout="this.start();" style="font-size: 15px; font-weight: bold; font-family: 'Trebuchet MS';"><span style="font-family: Arial, 'Arial Unicode MS', Helvetica, sans-serif; color: #404040;">text about latest news and projects</span></marquee></p>
The text in Bold is what I want to be replaced by short sentences/headlines running after each other taken from another document. I have tried using 'src='. But I can not get it to work, so either I have not set up the src file correctly or I am putting the src script in the wrong place within the marquee tags maybe? My web pages are html.
Also I know nothing about Java programming and coding so ideally I would like to amend the above! :(
Help would be much appreciated!! :D
P.S. I have tried http://www.dynamicdrive.com/dynamicindex2/emarquee.htm but I cannot get this to work either. :(
I am a newbie to HTML. I have only been designing and building websites for 4 weeks!! So please be gentle! lol
I have used some 'marquee' scrolling text in a new website project. This script and content will be in the same place on nearly every page. I would like to try and code the script to obtain the content from another file (if possible). So that by amending this file, I can change the scrolling text on all pages.
Ideally, I need to know the script to put in to the page and also how to set up the file so that the script reads it correctly and scrolls the text within this.
This is my current simple script:
<marquee behavior="scroll" scrollamount="4" direction="left" onmouseover="this.stop();" onmouseout="this.start();" style="font-size: 15px; font-weight: bold; font-family: 'Trebuchet MS';"><span style="font-family: Arial, 'Arial Unicode MS', Helvetica, sans-serif; color: #404040;">text about latest news and projects</span></marquee></p>
The text in Bold is what I want to be replaced by short sentences/headlines running after each other taken from another document. I have tried using 'src='. But I can not get it to work, so either I have not set up the src file correctly or I am putting the src script in the wrong place within the marquee tags maybe? My web pages are html.
Also I know nothing about Java programming and coding so ideally I would like to amend the above! :(
Help would be much appreciated!! :D
P.S. I have tried http://www.dynamicdrive.com/dynamicindex2/emarquee.htm but I cannot get this to work either. :(