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
https://forums.phpfreaks.com/topic/78461-solved-bbcode-textarea-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.