Solved

Image with no link color?

Posted on 1998-06-29
4
171 Views
Last Modified: 2010-04-09
http://www.huron.net/~jlewis/new/index.htm is where I'm keeping the pages I'm working on.  In the top left corner i have an image that says home.  It was an image map but I need two frames to change when it's clicked on so I just left it a normal image for now.  I'd like to click on it and have it change two frames as well as have text appear in the status bar.  One other thing I don't like is the link color around the image.  Can anyone help me with that?
0
Comment
Question by:treyjeff
  • 2
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
Holger101497 earned 50 total points
Comment Utility
Get rid of the blue box around the image with <img src=... BORDER=0>

Change two frames by using JavaScript-URLs... I won't elaborate because you already use these elsewhere on your page...

<MAP ...>
<area shape="rect" coords="163,17,192,36" href="javascript:parent.subnav.location='test1.htm'; parent.main.location='test2.htm';" onMouseOver="status='This is my link';return true;" onmouseout="status='';return true;">
</MAP>

should do it...

Good luck!
0
 
LVL 1

Author Comment

by:treyjeff
Comment Utility
Ok, the link thing worked but you have to look at my pages to see where I'm saying there is an error.  I use the javascript navigation for the home link but it gives an error.  Also, I'm not using an image map anymore.
0
 
LVL 6

Expert Comment

by:Holger101497
Comment Utility
Your problem is not at all related to the question!

<frameset framespacing="0" border="false" frameborder="0" rows="64,*">
  <frameset cols="86,49%">
    <frame name="home" scrolling="no" noresize target="contents" src="homenav.htm">
    <frame name="mainnav" src="mainnav.htm" scrolling="no" noresize>
  </frameset>
  <frameset cols="86,*">
    <frame name="subnav" target="main" scrolling="no" noresize src="subnav.htm">
    <frame name="main" src="main.htm" scrolling="no" noresize>
  </frameset>
  <noframes>
  <body>
  <p>This page uses frames, but your browser doesn't support them.</p>
  </body>
  </noframes>
</frameset>

You are using NESTED frames, so "parent" refers to the next-level frameset, not to the top-level frame,
i.e. in your "home", "parent" refers to the first frameset which does NOT contain a frame called subnav, it would have to be something like parent.parent.frames[1].subnav, or - easier - top.frames[1].subnav.
You could also name your framesets to make the code more readable...

Also, you should generally check your code!! <frameset cols="86,49%"> is not quite correct... (what happens to the rest?)

Let me know if that helps...
0
 
LVL 1

Author Comment

by:treyjeff
Comment Utility
It helped.  As for the coding of the frames, it was Front Page 98 that coded that!  I decided to try using one of the new editors out there to see how it would go.  Apparently I have run into more problems than normal.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now