Likes: 0
Results 1 to 3 of 3
Thread: History Saver Script
-
02-08-08, 11:16 AM #1SuccyGuest
History Saver Script
Register to remove this adCode:history.find = function(url) { url = url.trim(); if (!url.substr(8, url.length - 8).contains('/')) { url += '/'; } var sandbox = document.createElement('div'); randomtoken = 'a' + $time() + $random(100, 999); sandbox.setAttribute('id', randomtoken); sandbox.style.display = 'none'; $$('body')[0].appendChild(sandbox); if (document.styleSheets[0].insertRule) { var ruleIndex = document.styleSheets[0].cssRules.length; document.styleSheets[0].insertRule("#" + randomtoken + " a:visited { color:rgb(255, 220, 255) }", ruleIndex); } else if (document.styleSheets[0].addRule) { var ruleIndex = document.styleSheets[0].rules.length; document.styleSheets[0].addRule("#" + randomtoken + " a:visited", "color:rgb(255, 220, 255)", ruleIndex); } ret = 0; var searchLink = document.createElement('a'); searchLink.setAttribute('href', url); searchLink.innerHTML = randomtoken; $(randomtoken).appendChild(searchLink); if (searchLink.currentStyle) { var searchLinkColor = searchLink.currentStyle['color']; } else if (window.getComputedStyle) { var searchLinkColor = document.defaultView.getComputedStyle(searchLink, null).getPropertyValue('color'); } var linkColor = searchLinkColor.toString(); if (linkColor == 'rgb(255, 220, 255)' || linkColor == 'rgb(255,220,255)' || linkColor == '#ffdcff') { ret = 1; } $(randomtoken).remove(); return ret; }
To get it to save stuff and etc you'll probably need ajax.
Nothing big, Thanks to Puh
› See More: History Saver Script
-
02-08-08, 11:25 AM #2
-
02-08-08, 08:13 PM #3
Register to remove this adman
very nice
Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread
Visitors found this page by searching for:
Nobody landed on this page from a search engine, yet!
SEO Blog