SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2006
    Location
    Essex, UK
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Second color for text

    I was wondering if there was a way to do this, either without using javascript OR without using stolen javascript.

    Currently the only way I know how to do it is to steal some javascript deviantart plan to use for v5.
    Code:
    <script type="text/javascript">
    	var v;
            if (navigator.userAgent.indexOf("KHTML")<0 && navigator.product == "Gecko"){
    		document.getElementsByTagName('input')[0].disabled = false;
    	}
    	with(document.getElementsByTagName('div')[0]){
    		v = cloneNode(true);
    		v.className = 's';
    		parentNode.appendChild(v);
    	}
    </script>t>
    So is there anyway to do this (eg: http://www.deviantart.com/supersecretv5mode/ ) without stealing their source or writing all html twice.

    Thanks, Andy

  2. #2
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm confused. What do you mean by 'second colour'?

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2006
    Location
    Essex, UK
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A background color.

    If you look at http://www.deviantart.com/supersecretv5mode/ you will know what I mean.

  4. #4
    Winemaster bronze trophy BonRouge's Avatar
    Join Date
    Oct 2004
    Location
    Sendai, Japan
    Posts
    2,417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I saw that page and I don't know what you mean.
    Are you talking about the rollover effect?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •