Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 3 of 3
  1. #1
    Succy
    Guest

    History Saver Script


    Register to remove this ad
    Code:
    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;
    }
    Just a little code that tell you what history you have in your browser etc.
    To get it to save stuff and etc you'll probably need ajax.
    Nothing big, Thanks to Puh


    › See More: History Saver Script

  2. #2
    Founder
    Apple's Avatar
    Join Date
    Jul 2008
    Location
    HeaveN
    Posts
    15,916
    Post Thanks / Like
    Rep Power
    10
    Reputation
    295
    Nice , Thanks for sharing & keep contributing : P





  3. #3
    Contributor
    StickyIcky's Avatar
    Join Date
    Jul 2008
    Location
    127.0.0.1
    Posts
    747
    Post Thanks / Like
    Rep Power
    19
    Reputation
    188

    Register to remove this ad
    man
    very nice




  4. 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 03:33 PM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org