Ifarme generator

Jeg har veldig lite og gjøre så jeg har bestemp meg for og lage en ifarme generator. Jeg har komet veldig langt men den gir meg ikke den koden jeg vil ha :p

Den gir meg:

<iFRAME name= name src=url width=whith height=height scrolling=yes></IFRAME>

Mens jeg vile ha den til og gi:

<iframe name="ifarme navn" src="ifarme url" width:500; height:500; overflow:800;"></iframe>

Her er generatoren

<div id="div254032127" style="/*absolute positioning is not allowed.*/ top:228px; left:7px; width: 225px; height: 50px; z-index:4; overflow: visible; ">
<script type="text/JavaScript">
<!--
function generate(){

csscontentpart = ""
iframeName = ""
iframeURL = ""
iframeWidth = ""
iframeHeight = ""
iframeScroll = ""

if(document.ibars.iframeName.value != ""){csscontentpart += " " + "name=" + document.ibars.iframeName.value}
if(document.ibars.iframeURL.value != ""){csscontentpart += " " + "src=" + document.ibars.iframeURL.value}
if(document.ibars.iframeWidth.value != ""){csscontentpart += " " + "width=" + document.ibars.iframeWidth.value}
if(document.ibars.iframeHeight.value != ""){csscontentpart += " " + "height=" + document.ibars.iframeHeight.value}
if(document.ibars.iframeScroll.value != ""){csscontentpart += " " + "scrolling=" + document.ibars.iframeScroll.value}

if(iframeName != ""){"name=" + iframeName + " "}
if(iframeURL != ""){"src=" +"iframeURL + " "}
if(iframeWidth != ""){"width=" + iframeWidth + " "}
if(iframeHeight != ""){"height=" + iframeHeight + " "}
if(iframeScroll != ""){"scrolling=" + iframeScroll + " "}

cssstart = '<IFRAME'
cssend = '>' + "\n" + '</IFRAME>' + "\n"
cssbgmax = ''
document.ibars.scrollcode.value = cssstart + csscontentpart + cssend + cssbgmax
}
//--></script>
<script type="text/JavaScript">
<!--
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ie){
document.write('<style type="text/css">')
document.write('.textfield {font-size:8pt; font-family:verdana; color:#000000; font-weight:bold;}\n')
document.write('.hexfield {font-size:8pt; font-family:verdana; color:#000000; font-weight:bold;}\n')
document.write('</style>')
}
//-->
</script>
</HEAD>
<body>
<form name="ibars">
<table border="1" bordercolor="#000000" width="443" cellspacing="0" cellpadding="0" bgcolor="#ffffff" align="center">
<tr bgcolor="#ffffff">
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td width="100%">
<p><b><font color="#000000"><h9>Created By Simen<h9></font></b></p>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="#ffffff" valign="top">
<table border="0" width="100%" cellspacing="3" cellpadding="0">
<tr>
<td width="100%" align="center"></td>
</tr>
</table>
</td>
<td width="52%" bgcolor="#ffffff" valign="top" align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr bgcolor="#ffffff">
<td width="52%" bgcolor="#ffffff" valign="top" align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr bgcolor="#ffffff">
<td align="center">
<p><b><font size="2">Iframe Name:</font></b></p>
</td>
<td width="46%">
<input class="hexfield" type="text" name="iframeName" value="" size="10">
</td>
</tr>
<tr bgcolor="#ffffff">
<td width="54%" align="center">
<p><b><font size="2">Initial URL:</font></b></p>
</td>
<td width="46%">
<input class="hexfield" type="text" name="iframeURL" value="" size="10">
</td>
</tr>
<tr bgcolor="#ffffff">
<td width="54%" align="center">
<p><b><font size="2">Width:</font></b></p>
</td>
<td width="46%">
<input class="hexfield" type="text" name="iframeWidth" value="" size="10">
</td>
</tr>
<tr bgcolor="#ffffff">
<td width="54%" align="center">
<p><b><font size="2">Height:</font></b></p>
</td>
<td width="46%">
<input class="hexfield" type="text" name="iframeHeight" value="" size="10">
</td>
</tr>
<tr bgcolor="#ffffff">
<td width="54%" align="center">
<p><b><font size="2">Scrolling:</font></b></p>
</td>
<td width="46%">
<select class="hexfield" name="iframeScroll">
<option> </option>
<option value="auto">auto</option>
<option value="yes">yes</option>
<option value="no">no</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="443" cellspacing="0" cellpadding="4">
<tr>
<td align="center">
<input type="button" value="Generate Code" onClick="generate()" name="button">
</td>
</tr>
</table>
<table border="0" width="443" cellspacing="0" cellpadding="1">
<tr>
<td width="100%" align="center" bgcolor="#ffffff">
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr bgcolor="#ffffff">
<td width="100%" align="center"

<p><b><font size="2">Iframe Code:</font></b>
<TEXTAAREA rows="8" name="scrollcode" cols="46"></TEXTAAREA>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body></div></body>
</div>
</div>
<div id="div255468625" style="/*absolute positioning is not allowed.*/ top:229px; left:601px; width: 226px; height: 24px; z-index:4; overflow: visible; ">
<style type="text/css">
<!--
BODY {<div id="div254032127" style="/*absolute positioning is not allowed.*/ top:228px; left:7px; width: 225px; height: 50px; z-index:4; overflow: visible; ">
<script type="text/JavaScript">
<!--
function generate(){

csscontentpart = ""
iframeName = ""
iframeURL = ""
iframeWidth = ""
iframeHeight = ""
iframeScroll = ""

if(document.ibars.iframeName.value != ""){csscontentpart += " " + "<iframe name="" + document.ibars.iframeName.value}
if(document.ibars.iframeURL.value != ""){csscontentpart +=" " + "src=" + document.ibars.iframeURL.value}
if(document.ibars.iframeWidth.value != ""){csscontentpart +=:; + "width: ; + document.ibars.iframeWidth.value}
if(document.ibars.iframeHeight.value != ""){csscontentpart +=:; "height: ; + document.ibars.iframeHeight.value}
if(document.ibars.iframeScroll.value != ""){csscontentpart += " " + "scrolling=" + document.ibars.iframeScroll.value}

if(iframeName != ""){"<iframe name=" iframeName + " "}
if(iframeURL != ""){"src=" + iframeURL +
" "}
if(iframeWidth != ""){"width: + iframeWidth + ;"}
if(iframeHeight != ""){"height: + iframeHeight + ;"}
if(iframeScroll != ""){"scrolling=" + iframeScroll + " "}

cssstart = '<IFRAME'
cssend = '>' + "\n" + '</IFRAME>' + "\n"
cssbgmax = ''
document.ibars.scrollcode.value = cssstart + csscontentpart + cssend + cssbgmax
}
//--></script>
<script type="text/JavaScript">
<!--
var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ie){
document.write('<style type="text/css">')
document.write('.textfield {font-size:8pt; font-family:verdana; color:#000000; font-weight:bold;}\n')
document.write('.hexfield {font-size:8pt; font-family:verdana; color:#000000; font-weight:bold;}\n')
document.write('.buttons {background-color: #ffffff; border-color: #000000; border-width: 2; color: #FFFFFF; font-size: 9pt; font-family: verdana, arial, helvetica; font-weight: bold;}\n')
document.write('</style>')
}
//-->
</script>
</HEAD>
 

picxx

WF 09
2007.....hello!! :D
 
Topp