Results 1 to 3 of 3

Thread: How to put image in this code?!

  1. #1
    Join Date
    Jul 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to put image in this code?!

    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

    Code:
    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!

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Try this:

    Code:
    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.

  3. #3
    Join Date
    Jul 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    That works fine thankyou very much!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •