Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    generating HTML code by clicking on hyperlink

    Hi !

    Is there any chance to get it working in IE and FF

    as far as i know this function "insertAdjacentHTML" doesn't work in FF
    can someone try it for me ?


    i wanna add this code dynamicaly by clicking on some hyperlink...


    <fieldset style="float: left; width: 114px; text-align: center;"><a href="news.php" style="font-size: 9px;"><img src="../images/categories/0.jpg" alt="Osobné vozidlá"><BR>Osobné vozidlá</a></fieldset>

  • #2
    New to the CF scene
    Join Date
    May 2006
    Location
    Finland
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi

    I've got this kind of idea for your problem, if it works for your page

    <script language="JavaScript" type="text/JavaScript" >
    function show(){
    document.write("<fieldset style='float: left; width: 114px; text-align: center;'><a href='news.php' style='font-size: 9px;'><img src='files/rock.jpg' alt='Osobné vozidlá'><BR>Osobné vozidlá</a></fieldset>")
    }</script>

    </head>
    <body>

    <a onclick="show()"><img src="files/duck.jpg"></a>

    Just using document.write, it's simple and I suppose that you have already thought that...

    Regards Timo


  •  

    Posting Permissions

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