...

View Full Version : javascript tutorial



6arredja
03-14-2005, 06:02 PM
Does anyone know of a javascript tutorial on the properties of pictures


document.mypic.something

A1ien51
03-14-2005, 09:12 PM
Is this what you are after?

http://www.devguru.com/Technologies/ecmascript/quickref/image.html


Eric

mhonman
03-15-2005, 01:29 AM
give the picture an id

<img id="mypic" etc etc etc>

then reference the picture like this

<head>
<SCRIPT LANGUAGE="Javascript">

document.getElementById("mypic").style.visibility=hidden;

</script>
</head>

or type picture properties javascript tutorial at google?

try document.getElementById("mypic").style.visibility=visible;

document.getElementById("mypic").style.top=300;
document.getElementById("mypic").style.left=300;
document.getElementById("mypic").src="http://www.mypic.com";

hope this helps you!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum