|
| |
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: CSS or java script? advice please - 4/21/2004 10:40:58
Hi pong, if you post your your code and your styles, maybe someone can see how you have things set up. I'm not familar with Javascript, so I wont' be able to help you out there, but I know that there are members that do know and would be able to help you out on t his part of your question.
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
Giomanach
Posts: 6128 Joined: 11/19/2003 From: England Status: offline
|
RE: CSS or java script? advice please - 4/21/2004 10:55:52
Lemme play with this, if I get the time, I'll come back with the solution, if someone else doesn't before hand Dan
_____________________________
|
|
|
|
pong
Posts: 44 Joined: 3/24/2004 Status: offline
|
RE: CSS or java script? advice please - 4/21/2004 10:59:05
Here is a url of something i have up. (i actually have it posted it up on another thread but this is now a different question - but i'm not sure what the forum etiquette is but i'm presuming i should start another thread) In this url the blank grey squares will have the text link as shown in the attachement in my first post but the layout of code is the same. http://home.earthlink.net/~pongping/aes/index.htm Here is the style sheet code: This is the style sheet that has my attempt to use css for the links in the squares but it didn't work, the text wouldn't stay centered, part of the triangle was cut off , worked in Netscape but not in IE, a whole slew of problems happened, :-( , Starting to think that java scrip will be best for this problem but i thought i'd see what some new eyes would think. /* COMMENT */ /* file name aes_style.css */ a.topmenu:link {color: #ffffff; text-decoration: none; padding-left: 15px} a.topmenu:active {color: #ffffff; text-decoration: none} a.topmenu:visited {color: #ffffff; text-decoration: none} a.topmenu:hover {color: #ffffff; text-decoration: none; padding-left: 15px; background: url(images/triang_lft.gif); background-repeat: no-repeat } a:link { font-size: 12px; color: #999999; text-decoration: none} a:visited { font-size: 12px; color: #999999; text-decoration: none} a:hover { font-size: 12px; color: #ffffff; text-decoration: none} a:active { font-size: 12px; color: #999999; text-decoration: none} .products { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #ffffff; } .text { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #999999; } .footer{ font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #999999; }
|
|
|
|
lilblackgirl
Posts: 288 Joined: 5/16/2002 From: Status: offline
|
RE: CSS or java script? advice please - 4/21/2004 11:37:19
I think you hit it on the head when you said pros and cons. There are going to be good and bad things about using both methods. I think both will suffice (if i understand what you are trying to do), but i think it depends on the type of traffic you expect to have. Do you think your viewers will be using compatable browsers, enabling js, on dial up or BB (more graphics will slow that down and eventually drive away viewers). If you are looking for a good js, let me know, i found a great, very small and very basic, script for image replacement that i like to use.
_____________________________
You look like you're about to do something stupid. I'm in.
|
|
|
|
pong
Posts: 44 Joined: 3/24/2004 Status: offline
|
RE: CSS or java script? advice please - 4/21/2004 17:46:36
Thanks everyone for the suggestions. I tried the gorila's suggestion but it still was not centered, actually i think the code did what it was supposed to do but when the link is not rolled over it looks off centered 'cause you can't see the rollover graphic. anyhoo for now i used java script but will try some other css if something else comes up. I haven't tried Bobby's suggestion so later tongith will try that. Lilblackgirl: whats the code you have? i copied some DW code but if there some smaller amount of code - i'm all ears. Thanks
|
|
|
|
pong
Posts: 44 Joined: 3/24/2004 Status: offline
|
RE: CSS or java script? advice please - 4/26/2004 8:44:36
Thank you Gorialla for giving it a try. I really appreciate it. From what i'm reading in outfront you're a guru with this CSS stuff! I'll stick to Javascript for this portion of the site. Thanks!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|