Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-05-2005, 10:05 PM   #1
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
need help with cascading stylesheets...

i'm trying to get my thumbs to turn "grey" when they have been visited. i'm calling my .css file with the code "<link rel=stylesheet href=stylesheet.css type=text/css>" in my html header. i have tried inserting ".visited { FILTER: Gray }" in my .css file but it doesn't seem to work. what am i doing wrong?
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:25 PM   #2
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:45 PM   #3
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
er, if you have seen it done at any other site you can STEAL the code, view/source code try it ;)
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:47 PM   #4
AlienQ - BANNED FOR LIFE
best designer on GFY
 
AlienQ - BANNED FOR LIFE's Avatar
 
Join Date: Mar 2003
Location: IALIEN.COM - High Definition Video and Photographic Productions -ICQ 78943384
Posts: 30,307
Perhaps thecpathcto thecstyle sheet is incorrect?
AlienQ - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:48 PM   #5
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
ripped from madthumbs.com:

A:visited img {FILTER: "Gray"; border-thickness: 1px; border-color: #000000}
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:49 PM   #6
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
the codes in .css files are used a little bit differently and not viewable to surfers.
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:49 PM   #7
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
ok i will try that nickless...
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:50 PM   #8
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
Quote:
Originally Posted by eMonk
the codes in .css files are used a little bit differently and not viewable to surfers.
no.




8chars
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:50 PM   #9
Fletch XXX
GFY HALL OF FAME DAMMIT!!!
 
Fletch XXX's Avatar
 
Join Date: Jan 2002
Location: that 504
Posts: 60,840
agnostic beliefs. desecrate the holy.
__________________

Want an Android App for your tube, membership, or free site?

Need banners or promo material? Hit us up (ICQ Fletch: 148841377) or email me fletchxxx at gmail.com - recent work - About me
Fletch XXX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:50 PM   #10
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
wait a sec... i already tried that code nickless... read my first post...
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:53 PM   #11
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
Quote:
Originally Posted by eMonk
wait a sec... i already tried that code nickless... read my first post...
try it dude you didn't use visited *-*-*-"IMG"-*-*-*
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:54 PM   #12
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
a visited: {color:CCCCCC};

If your image is a link, then you don't need to tell the css that it is. In some browsers, that will "confuse" it.

Only problem is that the above will turn ALL of your visited links grey.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:55 PM   #13
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Quote:
Originally Posted by Fletch XXX
agnostic beliefs. desecrate the holy.
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:55 PM   #14
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
yeah you right... but... still didn't work...
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:57 PM   #15
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Quote:
Originally Posted by eMonk
yeah you right... but... still didn't work...
It may be your syntax is buggared. Is there a way we can look at the stylesheet you have made and maybe catch something you're not?
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:57 PM   #16
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
Quote:
Originally Posted by eMonk
yeah you right... but... still didn't work...
img filters will work on iexplorer only, are you testing with firefox? won't work there.
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:58 PM   #17
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
Quote:
Originally Posted by Tala
a visited: {color:CCCCCC};

If your image is a link, then you don't need to tell the css that it is. In some browsers, that will "confuse" it.

Only problem is that the above will turn ALL of your visited links grey.
that didn't work...
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:58 PM   #18
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
Quote:
Originally Posted by Nickless
img filters will work on iexplorer only, are you testing with firefox? won't work there.
i'm using ie...
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:59 PM   #19
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
here's my .css file...

a:link {
text-decoration: none;
color: #4E3C1D;
}

a:visited {
text-decoration: none;
color: #4E3C1D;
}

a:hover {
text-decoration: none;
color: #FFFFFF;
}

a:hover img
{
border: 1px solid #FFFFFF;
}

a:active {
text-decoration: none;
color: #FFFFFF;
}
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:59 PM   #20
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Wierd. I have an issue like yours with one of My sites. Seems I can see the links correctly in Opera, but no one else seems able to see the right damn color. *sigh*
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 10:59 PM   #21
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
Quote:
Originally Posted by eMonk
i'm using ie...
try ctrl+F5
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:01 PM   #22
Tala
Fucked if I know
 
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
Quote:
Originally Posted by eMonk
here's my .css file...

a:link {
text-decoration: none;
color: #4E3C1D;
}

a:visited {
text-decoration: none;
color: #4E3C1D;
}

a:hover {
text-decoration: none;
color: #FFFFFF;
}

a:hover img
{
border: 1px solid #FFFFFF;
}


a:active {
text-decoration: none;
color: #FFFFFF;
}
Are you trying to get it to hover gray or are you trying to get the visited one to go gray?
__________________

ICQ: 11120676 | Google: mindcrime | Skype: suitemindcrime|E-Mail: mindcrime AT gmail.com|PR girl with great writing skills for hire!!!! Contact me to work for YOU!|TECHIEMEDIA? 24/7 support from some of the best techs in the biz. Tell Jim that I sent you.
Tala is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:01 PM   #23
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
change:

Quote:
Originally Posted by eMonk
here's my .css file...

a:visited {
text-decoration: none;
color: #4E3C1D;
}
to

a:visited img {FILTER: "Gray"; border-thickness: 1px; border-color: #000000}
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:02 PM   #24
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
Quote:
Originally Posted by Tala
Are you trying to get it to hover gray or are you trying to get the visited one to go gray?
i'm trying to get the visited image to go gray...
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:05 PM   #25
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
Quote:
Originally Posted by Nickless
a:visited img {FILTER: "Gray"; border-thickness: 1px; border-color: #000000}
worked.. thanks..
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:05 PM   #26
Doc911
Confirmed User
 
Join Date: Feb 2004
Location: If i was up your ass you'd know
Posts: 3,695
Your code and Nickless code are not the same. try his it works. myou might also try putting the code directly in the file and not draw it from a seperate css file.
__________________


For PHP/MySQL scripts ICQ 161480555 or email [email protected]
Doc911 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:06 PM   #27
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
Quote:
Originally Posted by eMonk
worked.. thanks..
no problem
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:07 PM   #28
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
nickless's code worked but usually when i see this done on other sites the images turn gray even if you right click on them. mine only turn gray if you actually left click on the image which isn't bad...
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:15 PM   #29
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
when i refresh the page all the images that i visited go back to normal color which is normal. but i also have images to these dvd movies at the bottom of my page that stay gray even when the page is refreshed... why? kinda don't want these dvd covers to stay gray..
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:20 PM   #30
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
actually forget all of this.. i'm also having some bugs showing up in my toplist because of the code. i'm going to use my orginal css code. thanks anyways for the help guys!
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:27 PM   #31
Nickless
Confirmed User
 
Join Date: Aug 2003
Location: homeless
Posts: 1,955
Quote:
Originally Posted by eMonk
when i refresh the page all the images that i visited go back to normal color which is normal. but i also have images to these dvd movies at the bottom of my page that stay gray even when the page is refreshed... why? kinda don't want these dvd covers to stay gray..
No way around this unless you use some dirty tricks as putting your banners into an iframe (which i'm not sure will do the trick) or even more fucked up using .swf (flash) for banners or a javascript if/then thing for each thumb or banner,overkill and not worth it for a minimal cosmetic issue.
Nickless is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-05-2005, 11:30 PM   #32
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
yeah was thinking the samething bro. not worth the hassle. screw making the images go gray... lol...
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2005, 12:46 AM   #33
venturi
Confirmed User
 
Join Date: Aug 2001
Location: An Oasis atop a High Desert Mesa
Posts: 386
<style>
a:hover img {FILTER:Grey}
a:active img {FILTER:Grey}
</style>
__________________
I'm not a porn monger. I'm a porn ... STYLIST!
Buildit Cheap, build it Fast, Build it Right. - Pick Two.
venturi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.