Re: Suggestions please

by "David Rapp" <David(at)rappd.freeserve.co.uk>

 Date:  Mon, 22 Nov 1999 11:28:19 -0000
 To:  <hwg-basics(at)hwg.org>,
"Sharon" <sll(at)chariot.net.au>
 References:  net
  todo: View Thread, Original
Hi everybody,

You can use JavaScript to open up a new window set to your own preferances.

All you need to do is use the window.open J/Script command, the code should
look like this.

<SCRIPT type="text/javascript" Lanquage="JavaScript">
<!-- Hiding Comment
function newWindow() {
    var newWindow = window.open
("newUrl.html","windowname","Width=350,Height=375,status,scrollbars")
}
// stop hiding it -->
</script>

This opens a new window the source of which is newUrl.html, the name of the
window is windowname. The third quoted pair set the attributes so that the
window is 350 pixels wide and 375 pixels high, it only contains a scrollbar
and a status bar. Other attributes can be placed in the code. Such as
    toolbar - The back, forward buttons etc.
    location - Where the location of the page viewed is.
    directories - The 'Whats New' buttons.
    menubar - A menubar at the top of the window (Not on Macs though).
    resizable - allows others to resize the window (Mac windows are always
resizable).

All of these and the two listed above go between the third pair of quotes.
Inside this every attribute listed must be comma seperated (but no comma's
at the end).

You can then invoke this in the page through a link. Like this one.

<A href="#" onClick="newWindow();">

I'm currently using the script above in a page for an online help facility
for a site in development. The site is for people who may not know much
about the internet or web in general and so online help seems like a good
idea to make it more user friendly for them, also it won't get in the way of
the more experianced surfer.

HTH

Dave

> My question is:
>
> I am working on a sports page, and each of the players has done up a
profile
> on themselves. What my idea is, is to have something along the lines of
say
> the "help" file that pops up in Micro$oft or not necessarily that, but
> something that pops up when you click on it to give a brief intro to each
> player. Can anyone point me in the direction of something online that
could
> help me out there?
>
> I do not want to open a new page for each profile, just something like a
pop
> up box. I hope I am making sense. I basically want it to look like a
scrawl
> pad of the players then hit their name and something pops up, not a full
> screen, that says, Hi, I am such and such and these are my interests and
why
> I am involved in this sport.

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA