The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rollover code?

4 posters

Go down

Rollover code? Empty Rollover code?

Post by k[yli]e 3/1/2010, 20:05

whats the code for a rollover image?
i'd like to put my own image links inside of it.
avatar
k[yli]e
New Member

Posts : 4
Reputation : 0
Language : english

Back to top Go down

Rollover code? Empty Re: Rollover code?

Post by BrickMaster 3/1/2010, 20:55

What software?

For navigation roll-over images put this code in your CSS.

Here's the code I use on my phpBB 3 forum:

Code:

a.mainmenu img {
  -khtml-opacity : 0.7;
  -moz-opacity : 0.7;
  filter : alpha(opacity=70);
  opacity : 0.7;
  }
a.mainmenu:hover img {
  -khtml-opacity : 1;
  -moz-opacity : 1;
  filter : alpha(opacity=100);
  opacity : 1;
  }
BrickMaster
BrickMaster
Forumember

Male Posts : 253
Reputation : 0
Language : English, CSS, HTML

http://www.brick-builder.com

Back to top Go down

Rollover code? Empty Re: Rollover code?

Post by RoNo 3/1/2010, 21:28

You can use this for mouseover images on an Html enabled forum
Code:
<img src="Image 1 Url.png" border="0" onmouseover="this.src='Image 2 Url.png';" onmouseout="this.src='Image 1 Url.png';"></a>
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Rollover code? Empty Re: Rollover code?

Post by k[yli]e 4/1/2010, 10:03

I'll try out both, thanks.
avatar
k[yli]e
New Member

Posts : 4
Reputation : 0
Language : english

Back to top Go down

Rollover code? Empty Re: Rollover code?

Post by k[yli]e 4/1/2010, 11:34

I'm using this code for my navigation bar.
its not letting me put the entire code
[sorry im not an expert at coding]
avatar
k[yli]e
New Member

Posts : 4
Reputation : 0
Language : english

Back to top Go down

Rollover code? Empty Re: Rollover code?

Post by BrickMaster 4/1/2010, 14:53

That's ok, we're here to help. Smile

What images are you trying to use the roll-over effect on?

Your navigation buttons, forum icons, images in your post, or something else?
BrickMaster
BrickMaster
Forumember

Male Posts : 253
Reputation : 0
Language : English, CSS, HTML

http://www.brick-builder.com

Back to top Go down

Rollover code? Empty Re: Rollover code?

Post by k[yli]e 4/1/2010, 15:42

Navigation buttons.
for now, these are the first 2
Rollover code? Mmei2w
Rollover code? 23ljbis
avatar
k[yli]e
New Member

Posts : 4
Reputation : 0
Language : english

Back to top Go down

Rollover code? Empty Re: Rollover code?

Post by Agenda 4/1/2010, 16:10

The opacity code provided by Brick should actually do that for you (you shouldn't need a second image, just adjust the opacity until you get it how you want it). However, I've seen different versions of the code depending on what board version they have.

What version are you using? BB2, BB3, PunBB, or Invision?
Agenda
Agenda
Forumember

Male Posts : 172
Reputation : 9
Language : English

Back to top Go down

Rollover code? Empty Re: Rollover code?

Post by BrickMaster 4/1/2010, 16:17

Ok, so if you're using phpBB3 just paste the code I gave you into your CSS.

Advanced Admin Panel >>> Display >>> Pictures and Colors >>> Colors >>> CSS Stylesheet >>> Paste the code in
BrickMaster
BrickMaster
Forumember

Male Posts : 253
Reputation : 0
Language : English, CSS, HTML

http://www.brick-builder.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum