vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Rollover Images (https://vborg.vbsupport.ru/showthread.php?t=236365)

Trana 02-20-2010 04:05 AM

Rollover Images
 
Does anyone know an easy way to do rollover images in a post?

I tried using the normal CSS image swap but the IMG/A tag I used keeps getting changed into a BBCODE link:

<a class="rollover2" href="http://www.xxx.com/x.html">&nbsp;</a>

Anyone have a solution or another way to do this?

Thanks!

Karm4 02-20-2010 06:41 AM

Iv been able to do 1 rollover image but when i duplicate for 2nd image neither image does rollover but they appear fine. Everything works but rollover. I'll show you my code its pretty easy to read. Maybe you can get someone to tell me what im doing wrong also.
1st is posted in headinclude 2nd is posted in header
Code:

<script language="Javascript">
<!--

if (document.images) {
    button1 = new Image
    button2 = new Image
    button3 = new Image
    button4 = new Image
    button5 = new Image
    button6 = new Image

    button1.src = '/vb/images/youtube.png'
    button2.src = '/vb/images/youtubeinvert.png'
    button3.src = '/vb/images/facebook.png'
    button4.src = '/vb/images/facebookinvert.png'
    button5.src = '/vb/images/mail.png'
    button6.src = '/vb/images/mailinvert.png'
 }
//-->
</script>

Code:

<a href="http://www.youtube.com/itzboosted" target="_blank" ONMOUSEOVER="document.rollover.src=button2.src" ONMOUSEOUT="document.rollover.src=button1.src"><img src="/vb/images/youtube.png" border=0 name="rollover" align="right" alt="ItzBoosted.net Youtube"></a>

<a href="http://www.facebook.com/#!/pages/Cleveland-OH/ItzBoostednet/156413949058?ref=ts" target="_blank" ONMOUSEOVER="document.rollover.src=button4.src" ONMOUSEOUT="document.rollover.src=button3.src"><img src="/vb/images/facebook.png" border=0 name="rollover" align="right" alt="ItzBoosted.net Fans"></a>

<a href="http://www.itzboosted.net/vb/sendmessage.php" target="_blank" ONMOUSEOVER="document.rollover.src=button6.src" ONMOUSEOUT="document.rollover.src=button5.src"><img src="/vb/images/mail.png" border=0 name="rollover" align="right" alt="ItzBoosted.net E-Mail"></a>


The 3 buttons are the Mail/Facebook/Youtube image above the userlogin - here is some pics

IMG code isnt loading but link is http://s1018.photobucket.com/albums/...t=ibnimage.jpg
or you can visit my site @ www.itzboosted.net

http://s1018.photobucket.com/albums/...t=ibnimage.jpg

Trana 02-20-2010 08:07 AM

Yeah, I definitely need more than 1 rollover per post.

Karm4 02-20-2010 08:22 AM

Iv tried a million different ways, there has to be something im just missing on my script cause everything feels right.


All times are GMT. The time now is 12:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00968 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete