Hi! Can anybody please fix that script for me please?? i copied these scripts but i got some errors i wanna make BBCODE script BOLD, ITALICS, UNDERLINE and FONT COLOR works nicely but only problem is with the IMG and URL button, when i click on that buttons they got some error : OBJECT is null or something like that.. CAn you please fix them up??
i did fix your code, the problem is real simple, in the html page, where your buttons are look for the onclick event for the image button and the url button, when you find those, you will notice they say onclick='bbstyle(14)' for img and onclick='bbstyle(16)' for the url, any way the numbers are indexes for the array of tag options to insert also found in the main html page, find out what index the opening img tag is and insert that instead of 14, find out what index the opening url tag is and insert that instead of 16, remember counting begins at 0. i dont want to paste code as it is fairly simple.
u mean i have to correct in html file or in the javascript file? can you please let me know? and if you dont mind can u please remove the unwanted scripts from that javascript files? i did tried to search that error but dont know where's that?? can you please paste code?? please
cool hope that helped, i looked through the script functions briefly to see where the onclick event was being sent to, but i wouldnt remove the other scripts, as they probably serve for some other things that are happening behind the scenes