[Javascript] Code optimization
Terry Riegel
riegel at clearimageonline.com
Mon Aug 7 09:05:34 CDT 2006
Hello,
I need a little help optimizing the following code.
<div class="nor" id="004LukeShannon.jpg">
<A href="javascript:windowHandle=window.open('http://
clearimageonline.com/pages/htmlos/94150.128.040923622659991927',
'CIclearimage004LukeShannonjpg',
'width=550,height=550,status=yes,scrollbars=yes,resizable=yes,left=150')
;windowHandle.focus();" >
<img src="/clearimage/images/pict-small.gif" border="0" width="12"
height="12" align="left">
</A>
<a href="javascript:changedest('004LukeShannon.jpg','FILE')"
ondblclick="changedest2('004LukeShannon.jpg','FILE')">
004LukeShannon.jpg
</a>
</div>
What I would like to do is replace some of the references in the
second <a> tag with a relative reference to the containing div. I
would also like to replace all of the links on the page with similar
code, I think there is a way to do this in a script that will apply
to all links globally for that page. I would just need to know the
second argument in my code either "FILE" or "DIR"
Any help would be appreciated.
Terry
More information about the Javascript
mailing list