...

View Full Version : generating HTML code by clicking on hyperlink



miob
05-24-2006, 12: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>

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum