Click to See Complete Forum and Search --> : Text colour
Harrild
Jan 31st, 2002, 10:08 PM
how do you make the color change on text when its click so its static until a link on the same page is click and thus leaving that 'area' as it were.
scoutt
Feb 1st, 2002, 02:16 PM
so you have to push 2 links to leave teh page? not sure I follow
Harrild
Feb 3rd, 2002, 06:31 PM
goto www.ab-industries.com.au --> ab web services
i want products, services and portfolio to be yellow when you click on them and turn to white when you click on another catagory of web services
scoutt
Feb 3rd, 2002, 06:51 PM
ok I went to that page and clicked on portfolio and it turned yellow, then when I clicked on another one it went back to white. isn't that what it is suppose to do?
Harrild
Feb 3rd, 2002, 07:47 PM
no cos it turns white even if you click on nothing. I want it to stay yellow until you click on either services or products
scoutt
Feb 3rd, 2002, 08:43 PM
just change your vlink to yellow in your body tag. other than that I am not sure if you can do that.
Vincent Puglia
Feb 3rd, 2002, 09:45 PM
Hi,
1) I would close the splash screen once someone enters the site.
2) as scoutt said, change your vlink; currently it is set to white.
3) get rid of dreamweaver; its code is bloated and almost unreadable. The following would do the same job and is much cleaner:
function go2Url(frameName, url)
{
parent.frames[frameName].location = url;
}
and in your links:
<...onclick="go2Url('main', 'somepage.html')"....>
making the change should cut your file size by half and quicken load time for modem users
Vinny
Harrild
Feb 4th, 2002, 06:00 PM
ok i changed the vlink (sorry i havent got access to upload the newest version of site) to yellow but it didn't do what i wanted. About the Dreamweaver thing, i was forced to use it by my boss, i prefer to hand script as well.
This text thing. The selection on the left nav has to stay yellow for the whole time that the viewer is in that particular area. So even if they click on contact us when they are in products, products remains yellow until either another business unit is selected or a sub section of ab web services is selected and i need a definite solution by thursday. Any help would be appreciated
Vincent Puglia
Feb 4th, 2002, 06:13 PM
Hi,
try something like this:
function doit(ndx)
{
for (i = 0; i < document.links.length; i++)
document.links[i].style.color = 'blue';
document.links[ndx].style.color = 'yellow'
}
<a href="javascript:void(0)" onclick='doit(0)'>adfdfd</a>
did you show your boss the code? And s/he approved????? no accounting for taste, I guess
Vinny
Harrild
Feb 4th, 2002, 07:22 PM
i did show him the code but he doesn't understand the beauty and joy in scripting. He does everything through a gui -> dreamweaver and he isn't very good at it either. He put together an outline for the site which when it came down to the crunch, had to be re-written by me so it was usuable. He thinks that he will be able to just dump all the content from word into dreamweaver without making any modifications to the script, but he doesn't seem to realise that the script that i've created so far is so customised and cut pasted that most of the modifications have to be made by hand.
Anyway thanks for the bit of script, i'm going to try it out this afternoon if i have time.
Harrild
Feb 4th, 2002, 08:12 PM
looking at the script you gave me and the script i've got for the left nav, how the hell do i integrate one into the other?
Vincent Puglia
Feb 4th, 2002, 08:55 PM
Hi,
I really don't want to decypher that idiotic stuff -- puts me to sleep and your boss isn't paying me enough to read it -- but, try putting the inline ('doit(0)') either before the first gotoURL or after the last one. put the function between the head tags. You may have to check the numbers to be sure they are referencing the correct image.
Vinny
Harrild
Feb 18th, 2002, 10:42 PM
Has anybody got any other solutions
scoutt
Feb 18th, 2002, 10:53 PM
Originally posted by Harrild
no cos it turns white even if you click on nothing. I want it to stay yellow until you click on either services or products
like I said turn your vlink to yellow. that is what is't for. click on link it turns yellow. click on another link and the one before is still yellow.
or
try to make a class in css and when ever that link is clicked then turn them yellow. it seems you are loading another page when you click on ab webs services. just make those links that come up yellow with css then you won't have to worry about it. but changing only those on click you will have to look into css.
so if you click out of them and go to another page what difference what color they are if you can't see them.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.