68k Macintosh Liberation Army Forums
68k Macintosh Liberation Army Forums
Home | Members | Search | FAQ
 All Forums
 Lounge
 Is anyone here good with java script?
Author Topic  
catsdorule
Senior Member


Canada
1627 Posts
Posted - 02 Oct 2002 :  19:38:24
?

-Danny
Forum: http://www24.brinkster.com/catsdorule1/
"Windows(win-doze): A 32-bit extension to a 16-bit graphical shell of an 8-bit operating system originally coded for a 4-bit processor by a two-bit company that can't stand one bit of competition."

cinemafia
Guerrilla Recon Leader


USA
2965 Posts
Posted - 02 Oct 2002 :  19:42:24
I know a little...at least as it pertains to certain website design...what are you trying to do?

666th poster and 666th thread-creator
Mod of the Mac II series Forums
Total 68K Macs liberated: 7
My Site: http://cine.sytes.net
My Hotline Server: 840av.sytes.net
Go to Top of Page

catsdorule
Senior Member


Canada
1627 Posts
Posted - 02 Oct 2002 :  20:09:58
Ok I have two iframes on my page one is going to be the navigation bar, I know how to connect text links but i want to make a forum text box that will when you hit enter will make the bottom frame go to the adress you typed in the text box. Also I want to make two flash buttons one to use the history to go back and the other to go forward, i need to know the links i'd use.

-Danny
Forum: http://www24.brinkster.com/catsdorule1/
"Windows(win-doze): A 32-bit extension to a 16-bit graphical shell of an 8-bit operating system originally coded for a 4-bit processor by a two-bit company that can't stand one bit of competition."Go to Top of Page

Da Penguin
Senior Member


USA
1094 Posts
Posted - 02 Oct 2002 :  20:21:05
All i know is how to splice them together. I dunno if you know about javascript.internet.com , but I've put many scripts from various places there. Dunno if that helps any, but i thought id try.

~The Penguin

| Captain, Intelligence Operations / Space Cowboy |
There is only one path and that is the path that you take, but you can take more than one path.
| 68k.torpedobird.com <-- Official Hotline Server |Go to Top of Page

Gothikon
Full Member


Australia
537 Posts
Posted - 03 Oct 2002 :  04:05:01
My javascript is a bit rusty, as I only bothered learning it for one or two small jobs as I prefer to use perl. However if I remember rightly you want a function attached to the button with a line something like this

parent.header.document.location.href = linkURL

where header is the name of the target frame and linkURL is the address of the page you want to go to.

Unfortunately I can't remembed much more than that off hand. However if you go take a look at www.afi.org.au where I was the webmaster/in house design/ IT stuff etc etc, for some time (Don't ask I really don't want to talk about the things that went on there ) and you look at the code for the menu bar. It was originally based on freely available code (webmonkey I think) but I modified it extensivley to deal with multiple frames. I needed it to set the pages that would appear in two seperate frames you click on a link in the menu bar. However because the header frame contains a looping flash movie I only wanted that to be set when you moved in to a different section on the site. For instance if you are looking at a page in the library section and move to another page in the library section the header stays the same. But if you move to a page in the membershipi section the header does change.

It'll make more sense if you have a quick play and there is at least one function in there that will do what you want feel free to copy any of the code.

And no I am not responsible for the design, yuck... I spent most of my time fixing botched dreamweaver code and replacing crappy flash navigation. and you can blame the secretary who is trying to take it over for the botched bits e.g. images not aligned properlly on the front page, god I'm so glad I don't have to deal with them, much.....

Edited by - gothikon on 03 Oct 2002 04:06:08Go to Top of Page

   

68k Macintosh Liberation Army Forums

© 2001-2003 68kMLA

Go To Top Of Page

68k of the Week: kastegir's PowerBook 180.