View Full Version : Add-On
DJoe
January 10th, 2007, 02:16 PM
I have a hard time finding an add-on for this script. I was looking for a drop-down add-on, so when I select something in the drop-down it goes to a website in the Iframe. I guess the current Iframe could be considered a homepage.
Heres what I have for the Iframe:
<iframe name="webcam" src='http://www.bestbuy.ca/' width=400 height=300 frameborder=0 framespacing="0" scrolling="yes" border=0></Iframe>
degsy
January 10th, 2007, 02:30 PM
I'm guessing that you want a jump menu that can target frames?
<script type="text/javascript">
function jump(obj,target){
if(obj.value==-1){
alert('Please choose an option');
}
else{
parent.frames[target].location=obj.value;
}
}
</script>
<form name="form1" method="post" action="">
<select name="select" onchange="jump(this,'myframe')">
<option value="-1">Please choose an option</option>
<option value="http://www.google.com">Google</option>
<option value="http://yahoo.com">Yahoo</option>
</select>
</form>
<iframe width="100%" height="400" name="myframe"></iframe>
DJoe
January 10th, 2007, 06:22 PM
You were right on the button with that script, however according to Yahoo! Geocities and PY software there is a error in the script.
degsy
January 10th, 2007, 06:27 PM
The forums corrupted the first script.
Try it now.
btw, you should have noticed the major error in the script. Don't just copy & paste scripts without reading and understanding them.
DJoe
January 10th, 2007, 09:52 PM
Actually I should have mentioned that I noticed the error as well and tryed to fix it.
Anyway thank you for your assistance!
DJoe
January 11th, 2007, 12:48 AM
Hmm.. the script is correct but, it doesn't want to work on geocities:
http://www.geocities.com/piratemedia1/test2 (http://www.geocities.com/piratemedia1/test2)
PY software did accept it!
degsy
January 11th, 2007, 09:55 AM
Does the script work locally and on other webspace. I don't use geocities. If they add code that is effecting your scripts then you need to move or find a workaround.
btw, your page doesn't show in firefox at all.
DJoe
January 11th, 2007, 02:03 PM
Well I do have a Bravenet account, I'll try that.
Only thing is Geocities uses layers, which is one reason why I choose it, Haven't had any success trying to find something better and of course its Free.
The only work around I can think of is a Iframe on top of that Iframe, unless I can find a better method.
Here's the full source.
<script language="JavaScript">var PUpage="76001548"; var PUprop="geocities"; </script><script language="JavaScript" src="<A href="http://www.geocities.com/js_source/pu5geo.js"></script><script">http://www.geocities.com/js_source/pu5geo.js"></script><script language="JavaScript"> var thGetOv="http://themis.geocities.yahoo.com/themis/h.php"; var thCanURL="http://us.geocities.com/piratemedia1/test2.html"; var thSpaceId="76001548"; var thIP="142.161.122.13"; var thTs="1168484901"; var thCs="8d1af2f9288291ca28084bd43bfb8ac6";</script><noscript><link rel="stylesheet" href="<A href="http://themis.geocities.yahoo.com/jsoff.css?thIP=142.161.122.13&thTs=1168484901"></noscript><script">http://themis.geocities.yahoo.com/jsoff.css?thIP=142.161.122.13&thTs=1168484901"></noscript><script language="JavaScript" src="<A href="http://us.geocities.com/js_source/geovck08.js"></script">http://us.geocities.com/js_source/geovck08.js"></script>
<!-- text above generated by server. PLEASE REMOVE -->
<html>
<head>
<title>test2</title>
<meta name="generator" content="Created Using Yahoo! PageBuilder 2.61.90">
</head>
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#FF0000" text="#000000"
onLoad="window.onresize=new Function('if (navigator.appVersion==\'Netscape\') history.go(0);');">
<!-- following code added by server. PLEASE REMOVE -->
<link href="http://us.geocities.com/js_source/div.css" rel="stylesheet" type="text/css"><script language="JavaScript" src="<A href="http://us.geocities.com/js_source/div03.js"></script">http://us.geocities.com/js_source/div03.js"></script>
<!-- preceding code added by server. PLEASE REMOVE -->
<div id="root" style="position:absolute;top:0;left:0;width:260px;height: 42px">
<div style="position:absolute;left:8;top:8;width:240;height:22 ;">
<table width=240 height=22 border=0 cellpadding=0 cellspacing=0><tr valign="top">
<td><span style="font-size:14">-</span><script type="text/javascript">
function jump(obj,target){
if(obj.value==-1){
alert('Please choose an option');
}
else{
parent.frames[target].location=obj.value;
}
}
</script>
<form name="form1" method="post" action="">
<select name="select" onchange="jump(this,'myframe')">
<option value="-1">Please choose an option</option>
<option value="<A href="http://www.google.com">Google</option">http://www.google.com">Google</option>
<option value="<A href="http://yahoo.com">Yahoo</option">http://yahoo.com">Yahoo</option>
</select>
</form>
<iframe width="300" height="300" scrolling="no" frameborder="0" name="myframe"></iframe></td>
</tr></table></div>
</div>
</body>
</html>
<!-- text below generated by server. PLEASE REMOVE --></object></layer></div></span></style></noscript></table></script></applet><script language="JavaScript" src="<A href="http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script">http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script language="JavaScript" src="<A href="http://geocities.com/js_source/geov2.js"></script><script">http://geocities.com/js_source/geov2.js"></script><script language="javascript">geovisit();</script><noscript><img src="http://visit.geocities.yahoo.com/visit.gif?us1168484901" alt="setstats" border="0" width="1" height="1"></noscript>
<IMG SRC="http://geo.yahoo.com/serv?s=76001548&t=1168484901&f=us-w70" ALT=1 WIDTH=1 HEIGHT=1>
DJoe
January 14th, 2007, 02:46 AM
Bravenet.com accepted that script!!!
I could use iframe for it to work from Bravenet to Geocities, unless theres a faster script than iframe?
DJoe
January 14th, 2007, 07:48 PM
Shoot iframe didn't work, ok Ive never done this before, but is there a way so that when using open new window button the new window clings to the old window. Windows Update uses this method actually.
Google didn't seem to know what it was.
degsy
January 15th, 2007, 10:48 AM
I don't know what you mean either.
DJoe
January 17th, 2007, 10:17 PM
Well you know during Windows Update when, you minimize and the update window that shows installing in progress sticks on top of the back window. This is the type of javascript I was refering to. Basically what I'm saying is a new window button and when that window pop's up it can't go behind the window where it openned from and can't be minimized without the window where it openned from. This is what I ment by a "clinging window".
I'll post an example if your still not sure what I'm talking about.
degsy
January 18th, 2007, 10:05 AM
If you have an example then view the source code.
oracle128
January 18th, 2007, 05:18 PM
He's talking about a modal window. Windows Update uses ActiveX for this. Unless you use a javascript dialog box (which is [usually] natively modal), or some extraneous programming (ActiveX or a Mozilla/Firefox extension) this can't be done to a browser, it's a security risk.
DJoe
January 18th, 2007, 09:56 PM
Oh okay it has to do with ActiveX or a Mozilla/Firefox extension, alright. That sucks that its a security risk, hmm. Well I'm pretty stumt, well if any of you can come up with something, please. Unless there be a Geocities alternative that is free of charge than, I'll just have to keep using the usual methods.