Go Back   Christian Guitar Forum > Community > Academic > Computers
Register FAQ Members List Calendar Arcade Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 04-11-2009, 07:09 PM   #1
Brian Haner III
 
6strings21frets's Avatar
 

Joined: Dec 2006
Location: Brisbane
Posts: 2,584
Send a message via AIM to 6strings21frets
Hover tag question

Okay, so I'm making a website for one of my school subjects and so far neither I nor my teacher has been able to find a specific hover tag. I'm not sure which one, but I know what I want it to do (see attachments).

See what I circled in the attachment? That is part of a table I made. When you click one of the links, it goes to the next page and the yellow box highlights whichever page you are on (e.g. click Page 2, next page appears, and Page 2 is highlighted.) The links hover, but I want the block in the table to hover.

Any help available?
Attached Thumbnails
untitled.jpg  

__________________
Quote:
Originally Posted by tmlfan123 View Post
If Kentl becomes a mod it would be conclusive proof that BSPE created Kentl.
Quote:
Originally Posted by josey wales View Post
dude i bet you pooped yourself when that happened
6strings21frets is offline   Reply With Quote
Sponsored Links
Old 04-11-2009, 07:33 PM   #2
Guitar Player...
 
dtaylorl's Avatar
 

Joined: Aug 2004
Location: Canada
Posts: 1,121
Put a around each link and then on each html page change the background color to yellow for the page that is selected. e.g:
In the html document for the "home" page it would be:
HTML Code:
<span style="background-color:yellow;"><a href="home.html">Home</a></span>
<span><a href="page2.html">Page 2</a></span>
etc...
__________________
Links
Dropbox

Gear
Art & Lutherie Spruce with Quantum I Electronics
Agile AL-3100 -> GFT-90 Pedal Tuner -> SBN BDAB -> Danelectro Cool Cat Drive (OCD Clone) -> Boss DD-7 w/ homemade tap tempo -> Garnet Gnome
dtaylorl is offline   Reply With Quote
Old 04-11-2009, 09:49 PM   #3
The kitty strikes back
 
PatrickStar4491's Avatar
 

Joined: Mar 2004
Location: NC
Posts: 5,524
HTML Code:
<style type="text/css">
a:hover{
background-color: yellow;
}
</style>
That would be the HTML code needed to accomplish what you are wanting to do. I simply wrote some CSS (the stuff inside the STYLE tag) to make the background of all links yellow.

Do you only want the yellow background for the navigation links? If so, let us know and we can teach you a bit about CSS classes.
__________________
Blog
PatrickStar4491 is offline   Reply With Quote
Old 04-11-2009, 09:59 PM   #4
Guitar Player...
 
dtaylorl's Avatar
 

Joined: Aug 2004
Location: Canada
Posts: 1,121
Hmm... I'm a little confused as to whether the OP actually wants this to happen during the hover or not. He says that in one spot, but elsewhere he says:
Quote:
When you click one of the links, it goes to the next page and the yellow box highlights whichever page you are on
which is different than a hover.
__________________
Links
Dropbox

Gear
Art & Lutherie Spruce with Quantum I Electronics
Agile AL-3100 -> GFT-90 Pedal Tuner -> SBN BDAB -> Danelectro Cool Cat Drive (OCD Clone) -> Boss DD-7 w/ homemade tap tempo -> Garnet Gnome
dtaylorl is offline   Reply With Quote
Old 04-12-2009, 01:40 AM   #5
Brian Haner III
 
6strings21frets's Avatar
 

Joined: Dec 2006
Location: Brisbane
Posts: 2,584
Send a message via AIM to 6strings21frets
Do you guys want me to organize a compressed folder or something as an attachment so you can surf around and figure it out?
__________________
Quote:
Originally Posted by tmlfan123 View Post
If Kentl becomes a mod it would be conclusive proof that BSPE created Kentl.
Quote:
Originally Posted by josey wales View Post
dude i bet you pooped yourself when that happened
6strings21frets is offline   Reply With Quote
Old 04-12-2009, 03:51 AM   #6
Brian Haner III
 
6strings21frets's Avatar
 

Joined: Dec 2006
Location: Brisbane
Posts: 2,584
Send a message via AIM to 6strings21frets
Quote:
Originally Posted by PatrickStar4491 View Post
HTML Code:
<style type="text/css">
a:hover{
background-color: yellow;
}
</style>
That would be the HTML code needed to accomplish what you are wanting to do. I simply wrote some CSS (the stuff inside the STYLE tag) to make the background of all links yellow.

Do you only want the yellow background for the navigation links? If so, let us know and we can teach you a bit about CSS classes.
That code works, but yeah I only want it for the navigation thing. Would I just put the
HTML Code:
</style>
tag after the navigation thing?
__________________
Quote:
Originally Posted by tmlfan123 View Post
If Kentl becomes a mod it would be conclusive proof that BSPE created Kentl.
Quote:
Originally Posted by josey wales View Post
dude i bet you pooped yourself when that happened
6strings21frets is offline   Reply With Quote
Old 04-12-2009, 04:12 AM   #7
Brian Haner III
 
6strings21frets's Avatar
 

Joined: Dec 2006
Location: Brisbane
Posts: 2,584
Send a message via AIM to 6strings21frets
okay, new question...how do I create a "preview" of a picture?

I want to have thumbnails, so when I click on them, it just expands into full size without going to another page.

Any tips?
__________________
Quote:
Originally Posted by tmlfan123 View Post
If Kentl becomes a mod it would be conclusive proof that BSPE created Kentl.
Quote:
Originally Posted by josey wales View Post
dude i bet you pooped yourself when that happened
6strings21frets is offline   Reply With Quote
Old 04-12-2009, 07:37 AM   #8
The kitty strikes back
 
PatrickStar4491's Avatar
 

Joined: Mar 2004
Location: NC
Posts: 5,524
Quote:
Originally Posted by 6Strings21Frets View Post
That code works, but yeah I only want it for the navigation thing. Would I just put the
HTML Code:
</style>
tag after the navigation thing?
OK, the CSS code should technically go somewhere inside the HEAD tag, but it really doesn't matter where the block goes. Here is the updated code for what you want.
HTML Code:
<style type="text/css">
.nav:hover{
background-color: yellow;
}
</style>
Now, whenever you want a link to hover with a yellow background, you need to add the class attribute to it. Just add the class="nav" thing to each anchor tag you want to change, like below:
HTML Code:
<a href="#" class="nav">This link will hover yellow</a>
<a href="#">This link will not</a>

And for the the thumbnails... you'll probably need some sort of Javascript code for it. I'll see if I can happen to find something.
__________________
Blog
PatrickStar4491 is offline   Reply With Quote
Old 04-13-2009, 03:22 AM   #9
Brian Haner III
 
6strings21frets's Avatar
 

Joined: Dec 2006
Location: Brisbane
Posts: 2,584
Send a message via AIM to 6strings21frets
Code works...thanks

Also, with the thumbnails, I was thinking of doing rollover images, so if I roll over a thumbnail it just goes to full size. Does that help at all?
__________________
Quote:
Originally Posted by tmlfan123 View Post
If Kentl becomes a mod it would be conclusive proof that BSPE created Kentl.
Quote:
Originally Posted by josey wales View Post
dude i bet you pooped yourself when that happened
6strings21frets is offline   Reply With Quote
Reply

Tags
html hover tag

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 08:20 PM.