Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2010, 04:05 AM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 02-20-2010, 06:41 AM
Karm4 Karm4 is offline
 
Join Date: Jun 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
  #3  
Old 02-20-2010, 08:07 AM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I definitely need more than 1 rollover per post.
Reply With Quote
  #4  
Old 02-20-2010, 08:22 AM
Karm4 Karm4 is offline
 
Join Date: Jun 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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 Off

Forum Jump


All times are GMT. The time now is 10:45 PM.


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.03472 seconds
  • Memory Usage 2,184KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete