View Full Version : generating HTML code by clicking on hyperlink

05-24-2006, 01:08 AM
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>

05-24-2006, 02:01 AM

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>")


<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