Forum Moderators: not2easy
This is the link to the page on my test site.
[axess.com...]
None of the links work yet (At this point, I'm just interested in this page looking right). The code is at bottom of this message.
I hope it's just a missing space or comma, and doesn't take a lot of effort to fix.
But now that I've got your attention, there are two other things I'd like to look at on the page. It would be really cool if when you rolled over the items in the menu, the corresponding graphic on the left also changed. Is there a way to do this?
As well, I'd really like it if the 'fridge' graphic loaded first, and the icons appeared on top of that. Is there some way of working the pre-load code to make that happen?
Thanks in advance for your help.
Jack Ruttan, Montreal
<HTML><HEAD>
<TITLE>Jack's Fridge</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
image1 = new Image();
image1.src = "catsa3.gif";
image2 = new Image();
image2.src = "catsa4.gif";
image3 = new Image();
image3.src = "catsa3.gif";
image4 = new Image();
image4.src = "sketch.gif";
image5 = new Image();
image5.src = "sketcha.gif";
image6 = new Image();
image6.src = "comica.gif";
image7 = new Image();
image7.src = "comica1.gif";
image8 = new Image();
image8.src = "port.gif";
image9 = new Image();
image9.src = "porta.gif";
image10 = new Image();
image10.src = "hard.gif";
image11 = new Image();
image11.src = "harda.gif";
image12 = new Image();
image12.src = "elev.gif";
image13 = new Image();
image13.src = "eleva.gif";
image14 = new Image();
image14.src = "punk.gif";
image15 = new Image();
image15.src = "punka.gif";
image16 = new Image();
image16.src = "journal.gif";
image17 = new Image();
image17.src = "journala.gif";
image18 = new Image();
image18.src = "maga.gif";
image19 = new Image();
image19.src = "magb.gif";
image20 = new Image();
image20.src = "link.gif";
image21 = new Image();
image21.src = "linka.gif";
image22 = new Image();
image22.src = "about.gif";
image23 = new Image();
image23.src = "abouta.gif";
image24 = new Image();
image24.src = "collab.gif";
image25 = new Image();
image25.src = "collaba.gif";
// End -->
</script>
<STYLE TYPE="text/css">
a:link {
text-decoration:none;
color:#000000;
}
a:hover {
text-decoration:none;
color:#ff0000
}
a:visited {
text-decoration:none;
color:#99000;
}
#FRIDGE
{
z-index: 1;
position: absolute;
top: 16 px;
left: 236 px;
}
#CATS
{
z-index: 2;
position: absolute;
top: 94 px;
left: 366 px;
}
#SKETCH
{
z-index: 3;
position: absolute;
top: 195 px;
left: 431 px;
}
#PORTF
{
z-index: 10;
position: absolute;
top: 180 px;
left: 245 px;
}
#HARD
{
z-index: 6;
position: absolute;
top: 270 px;
left: 409 px;
}
#STOREY
{
z-index: 7;
position: absolute;
top: 87 px;
left: 246 px;
}
#PUNK
{
z-index: 8;
position: absolute;
top: 357 px;
left: 340 px;
}
#NEWS
{
z-index: 5;
position: absolute;
top: 293 px;
left: 331 px;
}
#MAGA
{
z-index: 9;
position: absolute;
top: 262 px;
left: 256 px;
}
#LINKS
{
z-index: 11;
position: absolute;
top: 350 px;
left: 220 px;
}
#ABOUT
{
z-index: 12;
position: absolute;
top: 82 px;
left: 310 px;
}
#COMICS
{
z-index: 13;
position: absolute;
top: 100 px;
left: 443 px;
}
#COLLAB
{
z-index: 14;
position: absolute;
top: 365 px;
left: 417 px;
}
</STYLE>
</HEAD>
<BODY >
<DIV ID="FRIDGE">
<img src="fridge2.gif" width="280" height="472" alt="" border="0">
</DIV>
<DIV ID="CATS">
<a href="cats.htm" onMouseOver="document.cats.src='catsa4.gif';" onMouseOut="document.cats.src='catsa3.gif';"><img src="catsa3.gif" width="82" height="72" alt="Jack's House O' Cats" border="0" name="cats"></a>
</DIV>
<DIV ID="SKETCH">
<a href="sketch1.htm"onMouseOver="document.sketch.src='sketcha.gif';"
onMouseOut="document.sketch.src='sketch.gif';">
<img src="sketch.gif" width="72" height="69" alt="Jack's Sketch Book" border="0" name="sketch"></a>
</DIV>
<DIV ID="COMICS">
<a href="comics.htm"onMouseOver="document.comics.src='comica1.gif';"
onMouseOut="document.comics.src='comica.gif';">
<img src="comica.gif" width="90" height="100" alt="comics!" border="0" name="comics"></a>
</DIV>
<DIV ID="PORTF">
<a href="port3.htm"onMouseOver="document.port.src='porta.gif';"
onMouseOut="document.port.src='port.gif';">
<img src="port.gif" width="82" height="108" alt="Jack's Illustration Portfolio" border="0" name="port"></a>
</DIV>
<DIV ID="HARD">
<a href="past3.htm"onMouseOver="document.hard.src='harda.gif';"
onMouseOut="document.hard.src='hard.gif';">
<img src="hard.gif" width="74" height="90" alt="Stories of Hardisty, Alberta" border="0" name="hard"></a>
</DIV>
<DIV ID="STOREY">
<a href="store.htm"onMouseOver="document.elev.src='eleva.gif';"
onMouseOut="document.elev.src='elev.gif';">
<img src="elev.gif" width="68" height="90" alt="To the Thousand Story Department Store" border="0" name="elev"></a>
</DIV>
<DIV ID="PUNK">
<a href="punk.htm"onMouseOver="document.punk.src='punka.gif';"
onMouseOut="document.punk.src='punk.gif';">
<img src="punk.gif" width="72" height="94" alt="The Skinny Nameless Punk" border="0" name="punk"></a>
</DIV>
<DIV ID="NEWS">
<a href="articles.htm"onMouseOver="document.news.src='journala.gif';"
onMouseOut="document.news.src='journal.gif';">
<img src="journal.gif" width="72" height="43" alt="News Articles" border="0" name="news"></a>
</DIV>
<DIV ID="MAGA">
<a href="godin.htm"onMouseOver="document.mag.src='magb.gif';"
onMouseOut="document.mag.src='maga.gif';">
<img src="maga.gif" width="72" height="75" alt="Magazine Articles" border="0" name="mag"></a>
</DIV>
<DIV ID="LINKS">
<a href="links.htm"onMouseOver="document.link.src='linka.gif';"
onMouseOut="document.link.src='link.gif';">
<img src="link.gif" width="120" height="92" alt="Links" border="0" name="link"></a>
</DIV>
<DIV ID="ABOUT">
<a href="http://www.richardgagnon.com/jack/ruttannew.htm"onMouseOver="document.about.src='abouta.gif';"
onMouseOut="document.about.src='about.gif';">
<img src="about.gif" width="68" height="84" alt="About Jack" border="0" name="about"></a>
</DIV>
<DIV ID="COLLAB">
<a href="collab.htm"onMouseOver="document.collab.src='collaba.gif';"
onMouseOut="document.collab.src='collab.gif';">
<img src="collab.gif" width="72" height="82" alt="Collaborative drawings" border="0" name="collab"></a><P>
</DIV>
<DIV style="position: absolute; top: 10px; width: 200px; left: 20px; height: 25px; background-color: white"><h1>Jack's Fridge</h1>
<hr>
<P>
Jack's Fridge is covered with all kinds of pictures. Click on some of them to find out about him. <P>
If all this technical wizardry somehow doesn't work, there's a menu below. <hr>
</DIV>
<DIV style="position: absolute; top: 35px; width: 200px; left: 565px; height: 25px; line-height:80%; background-color: white">
<a href="http://www.richardgagnon.com/jack/ruttannew.htm" onMouseOver="document.about.src='abouta.gif';" onMouseOut="document.about.src='about.gif';">
About Jack</a>
<hr>
<a href="comics.htm" onMouseOver="document.comics.src='comica1.gif';" onMouseOut="document.comics.src='comica.gif';">
Comics
</a>
<hr>
<a href="port3.htm" onMouseOver="document.port.src='porta.gif';" onMouseOut="document.port.src='port.gif';">
Illustration<br>Portfolio</a>
<hr>
<a href="cats.htm" onMouseOver="document.cats.src='catsa4.gif';" onMouseOut="document.cats.src='catsa3.gif';">
House of Cats
</a>
<hr>
<a href="past1.htm" onMouseOver="document.hard.src='harda.gif';" onMouseOut="document.hard.src='hard.gif';">
Stories of<br>
Hardisty, Alberta</a>
<hr>
<a href="store.htm" onMouseOver="document.elev.src='eleva.gif';" onMouseOut="document.elev.src='elev.gif';">
1000 Story<br>
Department Store</a>
<hr>
<a href="sketch1.htm" onMouseOver="document.sketch.src='sketcha.gif';" onMouseOut="document.sketch.src='sketch.gif';">
Jack's Sketchbook</a>
<hr>
<a href="collab.htm" onMouseOver="document.collab.src='collaba.gif';" onMouseOut="document.collab.src='collab.gif';">
Sketch collaborations</a><hr>
<a href="articles.htm" onMouseOver="document.news.src='journala.gif';" onMouseOut="document.news.src='journal.gif';">
News articles by Jack</a><hr>
<a href="articles.htm" onMouseOver="document.mag.src='magb.gif';" onMouseOut="document.mag.src='maga.gif';">
Magazine articles</a>
<hr>
<a href="punk.htm" onMouseOver="document.punk.src='punka.gif';" onMouseOut="document.punk.src='punk.gif';">
Skinny Nameless Punk</a><hr>
<a href="links.htm" onMouseOver="document.link.src='linka.gif';" onMouseOut="document.link.src='link.gif';">
Links
</a>
</DIV>
</BODY>
</HTML>
And Welcome to Webmasterworld!
First of all you shold remove the URL, because it's not allowed according to the TOS.
I havent looked that much into your code, but one thing stands out, and that is the absence of a doctype in your document.
It is also a very good idea to validate both your CSS and (X)HTML at W3C - Meny errors can be eliminated by that.
I don't know if this is the answer to your problem. If not please post again.
I'll give your advice a try and see what happens. There's probably lots else wrong as well. It's a problem-solving/learning process for me, so I'll be monkeying with it on my own.
Jack Ruttan (haven't yet found out how to quote a previous post in here!)
It would be really cool if when you rolled over the items in the menu, the corresponding graphic on the left also changed. Is there a way to do this?As well, I'd really like it if the 'fridge' graphic loaded first, and the icons appeared on top of that. Is there some way of working the pre-load code to make that happen?
The answer is yes, but since the solution to both of these things lies in the use of javascript, you might be better off taking your question to the JS forum.
I was unable to look at your page (administrative restrictions on my current location blocked it), and since you really didn't ask a question in the top portion of your post, I have no idea what the problem is.
Might I suggest that you give us a detailed description of the problem you are having? 'Trainwreck' is evocative, but hardly descriptive. Then post the relevant code (minus all the javascript stuff which just gets in the way of examing the mark up and css).
Do this and we can undoubtedly help you.
Note: quoting a post goes like this:
SQUAREBRACKETquoteSQUAREBRACKET your quote SQUAREBRACKET\quoteSQUAREBRACKET
I was unable to look at your page (administrative restrictions on my current location blocked it), and since you really didn't ask a question in the top portion of your post, I have no idea what the problem is.Might I suggest that you give us a detailed description of the problem you are having? 'Trainwreck' is evocative, but hardly descriptive. Then post the relevant code (minus all the javascript stuff which just gets in the way of examing the mark up and css).
All the images were piled up in the upper right-hand corner of the screen, ignoring their positioning I had so carefully specified. I thought rather than trying to describe that, I'd let you look at it via the link, but that's not allowed here.
However, Span's helpful remark about not putting a space between the value and "px;" in the code solved the problem, and the page looks ducky now.
Strange, I had copied that code from another page (that's how I get most of my programming), but obviously they had not paid attention to spaces (and were not using Mozilla). Or else I was just being negligent. Nonethless, I'm happy now, and will ask the Javascript questions in their proper forum.
Thanks for responding, all of you!
Jack Ruttan, Montreal