Jump to content

[SOLVED] BBCode Textarea help


gtal3x

Recommended Posts

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 :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.