Hi,
I am new in Javascript.
I want to add few lines for content, which is already present, using Javascript.
HTML code :
<html>
<head>
<script type="text/javascript">
function test()
{
t = document.getElementById("p123");
w = t.width;
h = t.height;
</script>
</head>
<body onload="test();">
<p><img alt="Graphic" id="p123" src="image1.gif" /></p>
<p>TEST</p>
</body>
</html>
In above HTML
If image is grater than 300px width then below line should be appeared otherwise no.
<p><a href="image1.gif"><img href="zoom.gif" /></a></p>
With above script i reached upto half part.
Please help me out.
Thanks in Advance.