Javascript Help

wxdqz

New Member
Please could someone modify the following script (provided by jalarie)

<script type="text/javascript">
Now=new Date();
Out ='<img src=http://www.webdeveloper.com/forum/archive/index.php/"http://xyz.com/gren.gif';
Out+='?'+Now*1;
Out+='" onerror="this.src=\'mine/red.gif\'"/>\n';
document.write(Out);
</script>


Modification needed:

Adding a link (<!-- m --><a class="postlink" href="http://www.xyz.com">http://www.xyz.com</a><!-- m --> target=_blank) to the image <!-- m --><a class="postlink" href="http://xyz.com/gren.gif">http://xyz.com/gren.gif</a><!-- m -->.

And adding another link (mine/goonline.html target=_self) to the image mine/red.gif
 
Back
Top