Closed Thread Icon

Topic awaiting preservation: Frames/rollovers Pages that link to <a href="https://ozoneasylum.com/backlink?for=8268" title="Pages that link to Topic awaiting preservation: Frames/rollovers" rel="nofollow" >Topic awaiting preservation: Frames/rollovers\

 
Author Thread
Genevieve
Paranoid (IV) Inmate

From: Santa Clara, CA, USA
Insane since: Jul 2002

posted posted 08-20-2002 22:43

Hey all! It's me again! ^_^ Thanks so much for your help before! I totally appreciate it! I actually think I might even UNDERSTAND what ya'll said! hehe. Anywho, I'm on to a new "assignment" and here's a link to see where I'm at so far: http://www.geocities.com/genevievescu/GettingFramed.html

Now, as you can see (if you click the rolling eyed pic) it looks much like my last problem did...only thing is for some reason I can't get the rollover PICS to change the pic in the top part. Here's my code so far for the significant section of it:

<center>
<!--Image Swap here-->

<a href="#" onMouseOver="temp=image1; image1=image2; image2=image3; image3=temp; window.document.rolleyes_bottom.src=image1" onClick="parent.control.document.rolleyes_top.src=image1;"><img src="Pics/rolleyes.gif" name="rolleyes_bottom" border="0"></a>

</center>

The changing pic seems to work but nothing "onClick" isn't working right. My top image (refresher) is named "rolleyes_top" (if you viewed source you would see this) and my control panel is called "control"....if you need more of my specific code, lemmie know. Any help would be MOST appreciated!

Thanks everyone in advance!



Genevieve Hokanson
Student Intern, GPB
http://einstein.stanford.edu
http://www.geocities.com/genevievescu/

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 08-20-2002 22:52

When using Frames you have to specify where the frame is. In this case it would be your "top" frame right? So in you onClick you have to say target="top".

Check out w3Schools for info on that but I am pretty sure that that is what you need.

Later,
C:\


~Binary is best~

[This message has been edited by CPrompt (edited 08-21-2002).]

Genevieve
Paranoid (IV) Inmate

From: Santa Clara, CA, USA
Insane since: Jul 2002

posted posted 08-20-2002 23:21

When I made target="top_window" (which is what I named that top part) it gave me the body of the bottom (click.html) IN the top_window...

Did I do it wrong?

<a href="#" onMouseOver="temp=image1; image1=image2; image2=image3; image3=temp; window.document.rolleyes_bottom.src=image1" onClick="parent.control.document.rolleyes_top.src=image1;" target="top_window"><img src="Pics/rolleyes.gif" name="rolleyes_bottom" border="0"></a>

Also, your link didn't work...can't find server name... Ack!

Thanks!
Hugs!

Genevieve Hokanson
Student Intern, GPB http://einstein.stanford.edu http://www.geocities.com/genevievescu/

[This message has been edited by Genevieve (edited 08-20-2002).]

[This message has been edited by Genevieve (edited 08-20-2002).]

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-20-2002 23:54

She actually does have the refrence to parent, but that's the main frameset

I'm pretty sure it should be
parent.top_window.document.rolleyes_top.src=image1

Where the main frameset page is the parent then you need the name of one of the two frames, since you want to change something in the top part (correct?) you use the name of that frame. I don't see anything named "control" (except for the html page but that's virtually worthless where JS is concerned) so I assume you want the name of that frame.




.:[ Never resist a perfect moment ]:.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 08-21-2002 02:50

Well, after looking back at my post I have to give myself a good 'ol Homer Simpson "DOH!" Anyway did Bit's advice do the trick?

Fixed the link above. Check out W3Schools for JavaScript and just about everything else. I find it to be more informative than some things at WebMonkey.



Later,
C:\


~Binary is best~

Genevieve
Paranoid (IV) Inmate

From: Santa Clara, CA, USA
Insane since: Jul 2002

posted posted 08-21-2002 17:58

(whoops..this is a duplicate...forum leaders feel free to delete.)

Genevieve Hokanson
Student Intern, GPB http://einstein.stanford.edu http://www.geocities.com/genevievescu/

[This message has been edited by Genevieve (edited 08-21-2002).]

Genevieve
Paranoid (IV) Inmate

From: Santa Clara, CA, USA
Insane since: Jul 2002

posted posted 08-21-2002 18:01

I just tried it and it worked GREAT! Thanks so much!! I thought it had to refer to the html page but I see what you mean about it needing to refer to the actual frame in which the page resides.

Thanks so much!!! ::hugs!!!!:::

Yay!! This stuff just get's more and more fun!

As for the page: I'll check it out. Since I'm sorta teaching myself JavaScript by this tutorial and trial/error, it will be nice to have lots of references. The book my boss gave me was just way too confusing. It would give you this whole code w/out explaining half of it and then move on and I was like ....uh....I haven't a clue what you just did!! And there wasn't anything to practice because you couldn't understand enough. Now that I've figured out some stuff it might make more sense lol but it's supposed to teach a beginner JavaScript..not a good book :-\

Hugs!

Genevieve Hokanson
Student Intern, GPB
http://einstein.stanford.edu
http://www.geocities.com/genevievescu/

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 08-21-2002 18:12

Genevieve: might want to check out the Beginning JavaScript by WROX press. Good book.

Later,
C:\


~Binary is best~

Genevieve
Paranoid (IV) Inmate

From: Santa Clara, CA, USA
Insane since: Jul 2002

posted posted 08-21-2002 18:16

Thanks! ^_^ And thanks for checking out my webbie and signing my guest book! Funky background indeed! hehe. I love pink...and I haven't found a bg pattern/pic that will work yet. So until then...shades of pink it will remain. Shoulda seen it a few weeks ago...itwas Pepto Bismal color lol.

Toodles!

Genevieve Hokanson
Student Intern, GPB
http://einstein.stanford.edu
http://www.geocities.com/genevievescu/

« BackwardsOnwards »

Show Forum Drop Down Menu