Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Saturday, December 3rd, 2005

Time Event
7:50a
Multiple image blink
Imagesoliloquy76 and Imagescimon graciously helped me with a single-image JS blinker yesterday.    I've tried a number of different things to apply what they offered to multiple images.  Unfortuantely Javascript only sees one image if I have several with the same ID. 

I was able to acheive what I want by (hold on to your hats) creating an extra function for each image I wanted to blink on the page - which hurt to do, but I wanted to know it was at least kinda possible. 

So what I'd like to do is combine all of that into a single function. 



Since I don't want to blink *every* image on the page I'll need a way of identifying those images I want to manipulate..  perhaps with a string in the id field:  id=blink123, blink124, blink125 for blinking images, and id=122, 126, 127 for non-blinking images. 

When looping through image id's on the page I could use something like this to know whether or not to blink it:

<< Previous Day 2005/12/03
[Calendar]
Next Day >>
About LiveJournal.com
Image