gtal3x Posted November 22, 2007 Share Posted November 22, 2007 Hello i am making a bbcode textarea and its working fine, what i wont to do is when someone mouseover over the icon (ex. B) i wont it to change the <td> style, exacly like in tiny_mce... Well i found a code wich does the image change onmouseover but i think is not gonna look verynice when a user will have to download all the images before they change... here is the code: <script language="JavaScript"> function change(picture) { document.theimg.src = picture } function change2(picture) { document.theimg2.src = picture } </script> <td> <div id="b_b" class="editor_button" onMouseOver="change('images/bbcode/b_over.gif')" onMouseOut="change('images/bbcode/b.gif')"> <img title="Bold" width="23" height="25" border="0" lowSRC="images/bbcode/b.gif" NAME="theimg"></div> </td> if someone can show me how can i change this code instead changing icons to change styles i will apriciate it... Please not a noob at javascript Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted November 22, 2007 Share Posted November 22, 2007 need a little bit more explanation to understand what you mean. are you wanting to change the <td> background image when someone mouses over icon or what css style are you trying to change about the <td>; when someone mouses over the icon? Quote Link to comment Share on other sites More sharing options...
gtal3x Posted November 22, 2007 Author Share Posted November 22, 2007 thnx for responce but i found a solution Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.