Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

works with ie5 not with ns4.7

Status
Not open for further replies.

newsguytt

Programmer
Mar 9, 2000
1
US
To begin with my site contains nudity, if this bothers you or you are underage then let someone older help me. <br>
<br>
The site is not porn is a nudist picture site underconstruction.<br>
<br>
<A HREF=" TARGET="_new"><br>
I am using javascript to enlarge the pics when they are clicked.<br>
<br>
Works super with ie5, works not at all with ns4.7.<br>
<br>
Can someone help me out?<br>
<br>
Thanks in advance<br>
tom davis
 
Sorry, but it certainly looks like a porn page to me (you have all women on there, not that I'm complaining...).<br>
Anyway, you need to specify captureEvents with ns, like this: <br>
<br>
windows.captureEvents(Event.CLICK)<br>
window.onclick=zoomImage<br>
<br>
With this, you no longer need { with (event.srcElement)<br>
but rather you would pass it as a parameter to the function: function zoomImage(x)<br>
Actually, I don't think srcElement is a part of Netscape's DOM. It would be better to specify &lt;a href=&quot;javascript:zoomImage(imagenamehere)&quot;&gt;. You would then have the function receive the parameter imagenamehere and change its attributes:<br>
function zoomImage(name)<br>
{<br>
// other javascript here (verify zoom perhaps?<br>
name.height=x // x being some number you specify<br>
name.width=x<br>
}<br>
<p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href= by Linux</a><br>Learn Linux and Leave out the Windows :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top