Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Prev Previous Post   Next Post Next
  #1  
Old 09-10-2009, 05:09 AM
MaR? MaR? is offline
 
Join Date: Aug 2008
Location: Argentina
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default CSS - Change image when mouse is over - GREAT!

Hello!,

I want to make my "reply.gif" buttom change when mouse is over.

I find a tutorial... a great one... but when I put the code on my "showthread" template, not work... maybe someone can help me.

Just need to see how insert this code around the image:


PHP Code:
<ul id="nav"
 
[
left] <li><class="EXAMPLE" href="SOMEWHERE" title="ANYTHING">?????</a></li>
</
ul>
[/
left

Im attaching a .rar file: inside you can find a .html with his .css where you can see what Im talking about.



MY SHOWTHREAD


PHP Code:
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$FIRSTPOSTIDrel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]border="0" /></if></a></td>
 <else />
  <
td class="smallfont">&nbsp;</td>
 </if>
 <if 
condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>
</
tr>
</
table>
<!-- / 
controls above postbits -->
<!-- 
toolbar -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center" style="border-bottom-width:0px">
<
tr>
 <
td class="tcat" width="100%">
  <
div class="smallfont">
  <if 
condition="$show['firstunreadlink']">
   <
a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]border="0" /></a>
   <
a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
  </if>
  &
nbsp;
  </
div>
 </
td>
 <
td class="vbmenu_control" id="threadtools" nowrap="nowrap">
  <
a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"accesskey="3"</if>>$vbphrase[thread_tools]</a>
  <if 
condition="$show['popups']"><script type="text/javascript"vbmenu_register("threadtools"); </script></if>
 </
td>
 <if 
condition="$show['search']">
  <
td class="vbmenu_control" id="threadsearch" nowrap="nowrap">
   <
a href="$show[nojs_link]#goto_threadsearch">$vbphrase[search_this_thread]</a>
   <if 
condition="$show['popups']"><script type="text/javascript"vbmenu_register("threadsearch"); </script></if>
  </
td>
 </if>
 <if 
condition="$show['threadrating']">
  <
td class="vbmenu_control" id="threadrating" nowrap="nowrap">
   <
a href="$show[nojs_link]#goto_threadrating"><span id="threadrating_current"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></span></a>
   <if 
condition="$show['popups']"><script type="text/javascript"vbmenu_register("threadrating"); </script></if>
  </
td>
 </if>
 <if 
condition="$vboptions['allowthreadedmode']">
 <
td class="vbmenu_control" id="displaymodes" nowrap="nowrap">
  <
a href="$show[nojs_link]#goto_displaymodes">$vbphrase[display_modes]</a>
  <if 
condition="$show['popups']"><script type="text/javascript"vbmenu_register("displaymodes"); </script></if>
 </
td>
 </if>
 <if 
condition="$show['inlinemod']">
  <if 
condition="$show['popups']">
   <
td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"><script type="text/javascript"vbmenu_register('imod'); </script></td>
  <else />
   <
td class="thead" align="center">
    <
input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]onclick="inlineMod.check_all()" />
   </
td>
  </if>
 </if>
</
tr>
</
table>
<!-- / 
toolbar -->
<if 
condition="$show['inlinemod'] AND $show['popups']">
 <
div class="vbmenu_popup" id="imod_menu" style="display:none" align="$stylevar[left]">
  
$threadadmin_imod_menu_post
 
</div>
</if>
<!-- 
end content table -->
$spacer_close
<!-- / end content table -->
<if 
condition="$show['threadedmode'] OR $show['hybridmode']">
<!-- 
thread posts list -->
$threadlist
<!-- /thread posts list -->
</if>
<if 
condition="$show['reputation']">
<
script type="text/javascript" src="clientscript/vbulletin_ajax_reputation.js?v=$vboptions[simpleversion]"></script>
</if>
<
div id="posts">$postbits<div id="lastpost"></div></div>
<!-- 
start content table -->
$spacer_open
<!-- / start content table -->
<!-- 
controls below postbits -->
<
table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:$stylevar[margin_3px_fix]px">
<
tr valign="top">
 <if 
condition="$show['largereplybutton']">
   <
td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTIDrel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]border="0" /></if></a></td>
[/
left



[left]
THANKS!!!
Attached Files
File Type: zip Sprites.zip (45.0 KB, 6 views)
Reply With Quote
 

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 Off

Forum Jump


All times are GMT. The time now is 05:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04904 seconds
  • Memory Usage 2,724KB
  • 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
  • (4)bbcode_code
  • (4)bbcode_html
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • 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_threaded
  • showthread_threaded_construct_link
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete