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
Changing Headline Banner
Old 11-29-2007, 10:04 AM Changing Headline Banner
Junior Talker

Posts: 4
Trades: 0
Hey all!

I want to make the following headline banner an alternating text javascript:

<div id="outerdiv" >
<div id="outerTagLine">
<div id="tagLine">
<b>Service Times - Sunday: 9:00 am, 10:30 am. Wednesday: 7:00 pm
</div>
</div>

(I have the code already)

However, most websites say to put the code in the head. Running a wiki/jsp website, I don't really have a "head", and besides wouldn't that apply the alternating text scheme to the entire page? How can I make it so it only applies to the above string of text?

thanks,
Zachary
zachmedia is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-29-2007, 10:36 AM Re: Changing Headline Banner
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
No idea

This "alternating text scheme" would be doing what exactly

BTW the HTML above is missing some closing tags.
__________________
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 11-29-2007, 10:48 AM Re: Changing Headline Banner
Junior Talker

Posts: 4
Trades: 0
Yeah I noticed that...only after I posted it.

The alternating text would change the text.

For example string 1 would say "Hello Everyone!"
and then time limit set to 2 seconds, would then (2 seconds later) change the text to "How are you today?"
then 2 seconds, "What are you most thankful for?"
and then loop.
zachmedia is offline
Reply With Quote
View Public Profile
 
Old 11-29-2007, 03:01 PM Re: Changing Headline Banner
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
javascript can go anywhere on the page, the usual practice of defining method and variables in the document head is so they are instantiated and initialised before you call them.

but just as long as you DO initialise before calling the methods they could be set in the line above the call.
__________________
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!
 
Reply     « Reply to Changing Headline Banner
 

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.13362 seconds with 12 queries