PDA

View Full Version : How to put image in this code?!



jeffromad
02-27-2007, 02:51 PM
I have this code below but i dont know how to put images into the main article. I cant use normal html image code as it doesnt work! Any ideas or help much appreciated! The code below is where i put the articles which are then displayed in the next column of the my website. example of this code in work HERE (http://www.bromleyaces.com/blackwidows/news.htm)


24/01/07 <a href="javascript:void(0)" onclick="change('Main article blah blah')">Black Widows announce assistant manager</a></font></br>

24/01/07 <a href="javascript:void(0)" onclick="change('Main article blah blah.')">Black Widows Website Launch</a></font></br>

20/01/07 <a href="javascript:void(0)" onclick="change('Main article blah blah')">Website work update</a></br>

Any ideas or help much appreciated and much needed! :confused:

thetestingsite
02-28-2007, 01:40 AM
Try this:



24/01/07 <a href="javascript:void(0)" onclick="change('Main article <img src=\'test.gif\'> blah blah')">Black Widows announce assistant manager</a></font></br>


Notice how I used single quotes around the attribute and I also escaped those quotes with a backslash.

Hope this helps.

jeffromad
02-28-2007, 08:41 AM
That works fine thankyou very much!! :D