GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need help with cascading stylesheets... (https://gfy.com/showthread.php?t=440464)

eMonk 03-05-2005 10:05 PM

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 03-05-2005 10:25 PM

:( :helpme :(

Nickless 03-05-2005 10:45 PM

er, if you have seen it done at any other site you can STEAL the code, view/source code try it ;)

AlienQ - BANNED FOR LIFE 03-05-2005 10:47 PM

Perhaps thecpathcto thecstyle sheet is incorrect?

Nickless 03-05-2005 10:48 PM

ripped from madthumbs.com:

A:visited img {FILTER: "Gray"; border-thickness: 1px; border-color: #000000}

eMonk 03-05-2005 10:49 PM

the codes in .css files are used a little bit differently and not viewable to surfers. :Oh crap

eMonk 03-05-2005 10:49 PM

ok i will try that nickless... :thumbsup

Nickless 03-05-2005 10:50 PM

Quote:

Originally Posted by eMonk
the codes in .css files are used a little bit differently and not viewable to surfers. :Oh crap

no.




8chars

Fletch XXX 03-05-2005 10:50 PM

agnostic beliefs. desecrate the holy.

eMonk 03-05-2005 10:50 PM

wait a sec... i already tried that code nickless... read my first post... :Oh crap

Nickless 03-05-2005 10:53 PM

Quote:

Originally Posted by eMonk
wait a sec... i already tried that code nickless... read my first post... :Oh crap

try it dude you didn't use visited *-*-*-"IMG"-*-*-*

Tala 03-05-2005 10:54 PM

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.

Tala 03-05-2005 10:55 PM

Quote:

Originally Posted by Fletch XXX
agnostic beliefs. desecrate the holy.

:thumbsup

eMonk 03-05-2005 10:55 PM

yeah you right... but... still didn't work... :Oh crap

Tala 03-05-2005 10:57 PM

Quote:

Originally Posted by eMonk
yeah you right... but... still didn't work... :Oh crap

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?

Nickless 03-05-2005 10:57 PM

Quote:

Originally Posted by eMonk
yeah you right... but... still didn't work... :Oh crap

img filters will work on iexplorer only, are you testing with firefox? won't work there.

eMonk 03-05-2005 10:58 PM

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... :Oh crap

eMonk 03-05-2005 10:58 PM

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 03-05-2005 10:59 PM

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;
}

Tala 03-05-2005 10:59 PM

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*

Nickless 03-05-2005 10:59 PM

Quote:

Originally Posted by eMonk
i'm using ie...

try ctrl+F5 :thumbsup

Tala 03-05-2005 11:01 PM

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?

Nickless 03-05-2005 11:01 PM

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}

eMonk 03-05-2005 11:02 PM

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 03-05-2005 11:05 PM

Quote:

Originally Posted by Nickless
a:visited img {FILTER: "Gray"; border-thickness: 1px; border-color: #000000}

worked.. thanks.. :thumbsup

Doc911 03-05-2005 11:05 PM

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.

Nickless 03-05-2005 11:06 PM

Quote:

Originally Posted by eMonk
worked.. thanks.. :thumbsup

no problem :thumbsup

eMonk 03-05-2005 11:07 PM

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 03-05-2005 11:15 PM

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 03-05-2005 11:20 PM

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! :)

Nickless 03-05-2005 11:27 PM

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. :2 cents:

eMonk 03-05-2005 11:30 PM

yeah was thinking the samething bro. not worth the hassle. screw making the images go gray... lol...

venturi 03-06-2005 12:46 AM

<style>
a:hover img {FILTER:Grey}
a:active img {FILTER:Grey}
</style>


All times are GMT -7. The time now is 08:15 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123