|
|
|
|
| Author |
Message |
OffMan
Joined: 06 Oct 2006 Posts: 73 Rank: 0
|
Posted: 09 Oct 2006 08:30 Post subject: Useful script for CJ webmasters |
|
|
At the top of the page insert this code:
<script language="JavaScript">
function o() {window.status='';return true;}
function z() {
var s = this.href;
var begin = s.indexOf('url=');
var end = s.indexOf('s=');
window.status=s.substring(begin + 4,end - 1);
return true;
}
function x(s) {
window.status = s;
return true;
}
</script>
At the bottom of the page insert this code:
<script>
var verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
if (app.indexOf('Microsoft') != -1) {
if (version >= 4.0) {
for (i = 0; i < document.all.length; i++)
if (document.all[i].tagName.toLowerCase() == 'a')
if (document.all[i].href.indexOf('url=') != -1) {
document.all[i].onmouseover = z;
document.all[i].onfocus = z;
document.all[i].onmouseout = o;
}
}
}
</script>
That's all. There will be real addresses of the galleries on mouseover but actually all links go thrue the script. |
|
| Back to top |
|
|
|
|
|
|
|
|
|
|
|
ADVERTISEMENT
|
|
|