Closed Thread Icon

Topic awaiting preservation: Ticker! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=25478" title="Pages that link to Topic awaiting preservation: Ticker! (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Ticker! <span class="small">(Page 1 of 1)</span>\

 
cigam83
Obsessive-Compulsive (I) Inmate

From:
Insane since: Apr 2005

posted posted 04-11-2005 09:41

Hey all,

I was wondering if you knew what type of ticker this was on www.codeamber.org and if you know of how to make one similar to this. I have done a lot of searches for tickers but none that I can find will stop when you hover a link and work in most browsers...
Thanks!

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 04-11-2005 19:19

Hi cigam83,

If you will look at his js code (which by the way came from Dynamic Drive DHTML), you'll see that he sets the ticker speed to 0 on a mouse over. This causes the ticker to stop moving until mouse out when he resets the ticker speed to the default value.



.

-- not necessarily stoned... just beautiful.

cigam83
Nervous Wreck (II) Inmate

From:
Insane since: Apr 2005

posted posted 04-12-2005 07:05

hey Thanks!

But how would it update on everyone's site that has the code for the ticker on their site? Maybe it doesn't...but that's what i figured it would do since it's to alert people.


thanks again!

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 04-12-2005 18:00

I don't understand you question.

The javascript to provide this ticker would be part of a page that you design. It you want it to update with different messages, you need to add an array of messages into the javascript so that it can update the message.




.

-- not necessarily stoned... just beautiful.

shingebis
Nervous Wreck (II) Inmate

From: UK
Insane since: Aug 2004

posted posted 04-13-2005 18:09

The reason it can update immediately on everybody's site is that the Javascript code itself (including the message text) is hosted on the codeamber.org site, and the sites that display the ticker just import the script like so:

code:
<SCRIPT LANGUAGE="JavaScript1.2" src="http://www.codeamber.org/js/codea.js"></script>


(taken from http://home.earthlink.net/~newagegirl/id38.html , the first such site I found on Google)

It's worth mentioning that if you had thousands of sites running your arbitrary Javascript code (that you have complete control over, and can change at any time) there are all sorts of evil schemes you could get up to, such as intercepting cookies to log in to private areas. I'm prepared to believe that the Code Amber people have honourable enough intentions, though :-)

« BackwardsOnwards »

Show Forum Drop Down Menu