Could I make an image 'blink' off an on, using Javascript? (in case you wondered an animated gif is not an option in this project) How would I do this?
Current Music:Zombina and the Skeletones - Springheeled Jack
if you give the img tag an id it makes it easier to reference in javascript then you can just change the image's source attribute to like an image that is all white, put that into a loop...
function getObj(objId)
{
if (document.layers)
return document.layers[objId];
if (document.getElementById)
return document.getElementById(objId);
if (document.all)
return document.all[objId];
if (document[objId])
return document[objId];
return false;
}
var orgSource = "";
While True {
orgSource = getObj("imageidname").src
getObj("imageidname").src = "http://...";
//some sorta wait timer
getObj("imageidname").src = orgSource;
}
no subject
Date: 2005-12-02 02:18 am (UTC)From:no subject
Date: 2005-12-02 08:20 am (UTC)From:no subject
Date: 2005-12-02 02:31 am (UTC)From:I'd imagine something to that effect.
no subject
Date: 2005-12-02 08:22 am (UTC)From:no subject
Date: 2005-12-02 04:38 pm (UTC)From:I think .width = x and .height = y works to resize the image in code.