javascript - how to make and iframe appear and include it in joomla -


here's plot: have iframe hidden , situated in far left

<iframe id="myframe" style="position:absolute;right:15;bottom:-10"    style="visibility:hidden;" width="600" height="480" frameborder="0" align="right" scrolling="no"></iframe>     

i have javascript function dynamically make iframe visible , update it's src

<script> function showframe(id) {  var iframe = document.getelementsbyid('myframe')   iframe.style.display='block'     } switch(id) { case "001": iframe.src= "www.google.com" case "002": iframe.src= "www.yahoo.com" } </script> 

and link like

<a href="#" id="001" onclick="showframe(this.id);"> first site </a> <a href="#" id="001" onclick="showframe(this.id);"> second site </a> 

i'm trying make work in joomla, ive turned off tiny editor, , save code won't work ? leads?


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -