javascript: opening new window
by Lead <lead(at)sunshineband.org>
|
| Date: |
Tue, 28 Nov 2000 16:16:58 GMT |
| To: |
hwg-techniques(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
List Members,
I've inheirited a site that needs some help. Okay,
it needs a lot of help in various forms, but to
START we need to figure out a few quick things.
Below is a bit of javascript that's in the index
page.
<.SCRIPT LANGUAGE="JavaScript">
<.!-- IE on a mac has many DHTML bugs, so this
won't let them into the site with less than IE5.0
var version = navigator.appVersion
if (navigator.platform == "MacPPC" &&
navigator.appName == "Microsoft Internet Explorer"
&& version.indexOf('MSIE 5.0')==0)
{
window.location.href = "ie_mac.html";
}
var state = "go";
function newwin(){
if (state == "go"){
window.open("home.asp","mainwindow","toolbars=
1,location=1,directories=1,status=1,menubar=
1,scrollbars=1,resizable=1,width=800,height=460");
state="stop";
}
else {
state="go";
void(0);
}
}
//-->
<./SCRIPT>
I actually have two issues. First, I changed this
successfully to allow resizing, tweaked the width
to work with the added side scrollbar without
putting in a bottom scrollbar, and got it to let
the new window have the toolbar at the top. But
we'd like the buttons (navigation toolbar?) to
also come up in the new window. As it stands now,
the user has to know how to go in and turn the
navigation buttons back on.
The second issue is, we don't actually WANT a new
window to open up. I'm just not overly familiar
with javascript though, and don't want to start
deleting stuff that might have other purposes that
I'm not aware of. Also, the bulk of this site is
in flash or something I'm equally unfamiliar with.
Before we get around to possibly redoing some of
it, we would like to simply fiddle with what we
currently have up to make it a bit more user-
friendly. (The window that opens up will be used
by clients to access items of their own, and they
will definitely want to be able to see navigation
buttons to move back and forth as the browse.)
TIA
Jeniffer
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.