frames ? layers ?

I'm on my biggest html project and need help how to work this out.

On the home page, I want to put my links (and buttons) in a left sided frame.  On the right side of the frames, I want to have images that are layered (I'm not certain if I'm using the right word) but the images must be changing (in rotation) every 3 seconds.

Whenever the reader wants to open a link, they click on it from the frame and the layered images will disappear and replace with the info page coming from the link.

Is html capable of doing this? Your help is greatly appreciated.

jamaicaAsked:
Who is Participating?
 
TTomConnect With a Mentor Commented:
Despite gravity's objection, what you want to accomplish is probably most easily accomplished using frames.  However, you will probably need some scripting (to replace your images), in addition to HTML.

In your frameset, you will need to target the links in the left frame to the right frame.

In the right frame, your initial page must contain an array of images, along with a script which will change the image every three seconds.

The code will look something like:

** frameset.htm **
<frameset cols="25%,*">
<frame name="left" src="left.htm">
<frame name="right" scr="gifs.htm">
</frameset>

** left.htm **
<a href="mylink.htm" target="right">My Link</a>

** gifs.htm **
<script>
var img()
img(0) = "first.gif"
img(1) = "second.gif"
img(2) = "third.gif"

function switch(nextgif) {
   var nextgif
   if (nextgif == "first.gif") {
      nextgif = "second.gif"
   } else if (nextgif == "second.gif") {
      nextgif = "third.gif"
   } else {
      nextgif = "first.gif"
   }
   setTimeout("document.myGif.src = nextgif", 3000)
   switch()
}

<body onload="switch(document.myGif.src)">
<img name="myGif" src="first.gif">

I have left a lot of the other code (which is needed to create the documents) out.  These are the elements which should accomplish what you want.

There are probably more elegant ways to accomplish the image switching.

If this is the direction you wish to go, we can refine the code to get what you want.

Tom
0
 
gravityCommented:
HTML is capable of it, but don't use frames... they're horrible.

Try using a table like this :

<TABLE WIDTH=100%>
<TR><TD WIDTH=xxx>
***menu list***
</TD><TD>
***data***
</TD></TR></TABLE>

Now, just replace the width=xxx with however wide (in pixels) you want the menu to be and you're sorted... the only problem is that you will have to copy the code for every page you have.
0
 
jamaicaAuthor Commented:
TTom, yes you're on target with what I need!

Definitely want to go further with the codes you've introduced above.

I've tried using a

   language="javascript1.1"
     onMouseOver document.img.src ~~~

I've been trying to enhance on what you have suggested but still can use some help.

Thank you very much!!
SandiF
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
TTomCommented:
Ask away (let me know what is causing problems or what doesn't work the way you would like)!  I will try to help however I can.

Tom
0
 
Jan LouwerensSoftware EngineerCommented:
check this site for lots of cool javascript tricks:
http://www.htmlguru.com
0
 
nissepCommented:
<frameset  cols="20%,*" framespace="0" border="0" frameborder="0">
    <frame name="1" src="frame.htm" marginwidth="10" marginheight="10" scrolling="no" frameborder="yes" noresize>
    <frame name="2" src="gifs.htm" marginwidth="10" marginheight="10" scrolling="auto" frameborder="no" noresize>
</frameset>
0
 
nissepCommented:
If you want gifs just type inthe code
<img src="name" alt="text"> around it you can use <p align="left, right or center"></p>

Example: A pic to the right
<p align="right"><img src="garfield.gif" alt="Garfield"></p>

Try it out
0
 
jamaicaAuthor Commented:
TTom, I worked with what you had given me and have accomplished what I needed!

I've made further enhancements to it by taking the images out of the frame and putting it into the body of the main.html page.

I'm still a bit an intermediate but have bought a book on DTML, which I hope will be helpful :)  BTW, the book is titled "Dynamic HtML in Action, Web Technology", by Eric Schurman and William Pardi.

To everyone else, your help is also invaluable and much appreciated!

jamaica aka Sandi
0
 
TTomCommented:
Congratulations!  Always glad to help.  Even MORE gratified when what I have supplied can be used and expanded upon.  Makes me feel like a teacher in addition to being a techie!

Regards,

Tom
0
All Courses

From novice to tech pro — start learning today.