sakanet — 2011-06-21T14:48:02-04:00 — #1
I am trying to create a flashing signal affect on a car. Basically one picture has signal off and second picture signal on. I achieved this with GIF animation and used 256 colors but picture quality suffered dramatically. I also don't want to use flash.
Here is the result with GIF: Your Site Name
Please let me know if you need more info.
Thanks in advanced.
logic_ali — 2011-06-21T17:52:19-04:00 — #2
<img src = 'mypic.gif' id = 'somePic'>
function twoPix( picId, picA, picB, period )
var picElem = document.getElementById( picId ), state = false;
picElem.src = ( state ^= true ) ? picB : picA ;
setInterval( f, period );
twoPix( 'somePic', 'mypic.gif', 'myotherpic.gif', 500 );
Thanks in advanced
Whatever that means.
sakanet — 2011-06-21T17:59:42-04:00 — #3
Thanks Ali, I will give this a shot shortly and let you know the result.
sakanet — 2011-06-22T15:05:55-04:00 — #4
Ali, it works when the pictures are in the same folder as the html document.
How can you make it work if pictures are in a sub-folder.
Thanks for your help! I appreciate this.
logic_ali — 2011-06-22T20:43:08-04:00 — #5
Specify the relative path as part of the file names.
sakanet — 2011-06-24T11:27:20-04:00 — #6
Ali thanks, i forgot to tell you that it worked. I had to use a module to make it work in a Joomla site since Joomla was modifying the code.