Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Apr 18, 2006 0:08:23 GMT
Global FooterWhat this does is makes the avatar a link to whatever a member designates as their 'Website URL' in the profile area <script type="text/javascript"> <!-- /* link avatar to website */
var img = document.getElementsByTagName('img'); if(location.href.match(/ion=(display|(pm)?(calendar)?view|(user)?recent|search2)/)) { for(i=0; i<img.length; i++) { if(img.item(i).alt == '[homepage]') { var r = 1; while(img.item(i-r) && img.item(i-r).alt != '[avatar]') { r--; } if(r < 6) { img.item(i-r).style.cursor = 'hand'; img.item(i-r).store = img.item(i).parentNode.href; img.item(i-r).onclick = function() { location.href = this.store; } img.item(i).style.display = 'none'; } } } } //--> </script>
|
|