Jump to content

Outside File Browse To Specified Iframe


jmc92

Recommended Posts

I have been trying to make this work as a regular file browse and have it open in the specified iframe but it doesnt work properlyHow do I fix this?

<input name="url" value="file:/" id="q2" onkeyup="displayunicode(event);" type="file" style="background-color: transparent; position:absolute; border:0px; top:47px; left:50px; width: 259px; height: 12px;"><div style="position:absolute; left: 324px; top: 49px; width: 41px; height: 14px;"onclick="frames['iframe1'].location.href=document.getElementById('q2').value"></div>

If it would help to answer the question I can give the full code of my page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Internet Explorer-</title><script type="text/javascript">if (event.keyCode == 13){event.returnValue=false;event.cancelBubble = true;frames['iframe1'].location.href=document.form1.url.value;} </script><script LANGUAGE="JavaScript1.1"><!-- Original:  Martin Webb (martin@irt.org) --><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Beginfunction right(e) {if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))return false;else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {alert("Sorry, you do not have permission to right click.");return false;}return true;}document.onmousedown=right;document.onmouseup=right;if (document.layers) window.captureEvents(Event.MOUSEDOWN);if (document.layers) window.captureEvents(Event.MOUSEUP);window.onmousedown=right;window.onmouseup=right;//  End --></script></head><img src="nav.png" style="position: absolute; left: 0px; top: 0px" /><script type="text/javascript">function displayunicode(e){var unicode=e.keyCode? e.keyCode : e.charCodeif(unicode==13){	frames['iframe1'].location.href=document.getElementById("url").value	}}</script><div style="position:absolute; left: 377px; top: 29px;"><form name="Tick"><input type="text" size="12" name="Clock"></form><script><!--/*By George Chiang (JK's JavaScript tutorial)http://javascriptkit.comCredit must stay intact for use*/function show(){var Digital=new Date()var hours=Digital.getHours()var minutes=Digital.getMinutes()var seconds=Digital.getSeconds()var dn="AM" if (hours>12){dn="PM"hours=hours-12}if (hours==0)hours=12if (minutes<=9)minutes="0"+minutesif (seconds<=9)seconds="0"+secondsdocument.Tick.Clock.value=hours+":"+minutes+":"+seconds+" "+dnsetTimeout("show()",1000)}show()//--></script></div><div style="position:absolute; left: 464px; top: 1px; width: 13px; height: 13px;><form method="post"><input type="image" src="x.png" onclick="window.close()"></form></div><div style="position:absolute; left: 8px; top: 15px; width: 18px; height: 9px;"onclick="frames['iframe1'].location.href='file.html'"></div><div style="position:absolute; left: 35px; top: 15px; width: 21px; height: 9px;"onclick="frames['iframe1'].location.href='img.html'"></div><div style="position:absolute; left: 63px; top: 15px; width: 26px; height: 9px;"onclick="frames['iframe1'].location.href='view.html'"></div><div style="position:absolute; left: 95px; top: 15px; width: 48px; height: 9px;"onclick="frames['iframe1'].location.href='file:/PSP/SYSTEM/BROWSER/bookmarks.html'"></div><div style="position:absolute; left: 151px; top: 15px; width: 30px; height: 9px;"onclick="frames['iframe1'].location.href='tools.html'"></div><div style="position:absolute; left: 186px; top: 15px; width: 25px; height: 9px;"onclick="frames['iframe1'].location.href='help.html'"></div><div style="position:absolute; width: 54px; height: 18px; left: 5px; top: 28px;" onclick="history.go(-1);"></div><div style="position:absolute; left: 74px; top: 28px; width: 35px; height: 18px;"onclick="history.go(+1);"></div><div style="position:absolute; left: 109px; top: 28px; width: 13px; height: 19px;"onclick="frames['iframe1'].location.href='stop.html'"></div><div style="position:absolute; left: 127px; top: 28px; width: 13px; height: 19px;><input type="image" src="refresh.png" onclick="frames['iframe1'].location.reload();" value="reload iFrame"></div><div style="position:absolute; left: 143px; top: 28px; width: 17px; height: 19px;"onclick="frames['iframe1'].location.href='http://www.google.com'"></div><div style="position:absolute; left: 165px; top: 28px; width: 56px; height: 19px;"onclick="frames['iframe1'].location.href='search2.html'"></div><div style="position:absolute; left: 224px; top: 28px; width: 69px; height: 19px;"onclick="frames['iframe1'].location.href='file:/PSP/SYSTEM/BROWSER/bookmarks.html'"></div><div style="position:absolute; left: 296px; top: 28px; width: 28px; height: 19px;"onclick="frames['iframe1'].location.href='mail.html'"></div><div style="position:absolute; left: 327px; top: 28px; width: 28px; height: 19px;"onclick="frames['iframe1'].location.href='non.html'"></div><div style="position:absolute; left: 349px; top: 28px; width: 21px; height: 19px;"onclick="frames['iframe1'].location.href='editing.html'"></div><input name="url" value="submit" id="q2" onkeyup="displayunicode(event);" type="file" style="background-color: transparent; position:absolute; border:0px; top:47px; left:50px; width: 259px; height: 12px;"><div style="position:absolute; left: 324px; top: 49px; width: 41px; height: 14px;" input type="button" onclick="frames['iframe1'].location.href=document.getElementById('q2').value"></div><div style="position:absolute; left: 368px; top: 50px; width: 46px; height: 11px;"onclick="frames['iframe1'].location.href='links.html'"></div><div style="position:absolute; left: 416px; top: 50px; width: 61px; height: 13px;"onclick="frames['iframe1'].location.href='content.html'"></div><div style="position:absolute; left: 57px; bottom: 2px; width: 53px; height: 10px;><FORM><input type="image" src="newtab.png" onClick="window.open('index.html','mywindow','width=480,height=272')"> </FORM></div><div><img src="load2.gif" border="0" style="position:absolute; left: 282px; bottom :1px; width :67px; height: 10px; borer="0"></div><div style="position:absolute; left: 355px; bottom: 1px; width: 52px; height: 10px;"onclick="frames['iframe1'].location.href='http://zizle.novahost.org/ie2/index.html'"></div><iframe id="iframe1" src="http://www.google.com" border="0" style="border: 0px; width:476px; height: 197px; position:absolute; top:63px; left:2px;" name="iframe1"></iframe></body></html>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...