 |
|
09-20-2005, 08:20 AM
|
|
#1
|
 |
|
Battler (Level 3)
Join Date: Sep 2005
Posts: 26
|
ONLOAD and a simple menu
Hi,
Can I have two ONLOAD functions on the body tags, I already have one for image preloading, and I want to add another for menu script, I tried adding to ONLOAD (ONLOAD="preloadImages()"; ONLOAD="menu()"  , but non of them worked.
And does any body have a simple, easy to install menu script that does not conflict with the preloading script, I have and image buttons, I want when mouse over a menu will appear containing links, that simple.
Ghassan
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-20-2005, 08:24 AM
|
|
#2
|
 |
|
Swordman (Level 9)
Join Date: Sep 2005
Location: NSW, Australia
Posts: 88
|
Well you could create a function that calls both functions.
Code:
function loadfuncs()
{
preloadImages();
menu();
}
And then call that function with body onload.
Code:
<body onload="loadfuncs()">
I'm sorry but I can't help you with your Dynamic Menu question.
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-20-2005, 11:23 AM
|
|
#6
|
 |
|
Battler (Level 3)
Join Date: Sep 2005
Posts: 26
|
And this what happens if I only keep the menu script:
http://www.digitalmedia-sol.com/jedco/index2.html
Can somebody help me please, I've been searching and trying different menu script for three days and nothing works, keep in mind that I don't want a script that create menu from scratch, I already have an image buttons that I want a menu to appear when mouse over them.
If you can help please ASAP, the deadline only one day away.
Ghassan
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-20-2005, 01:27 PM
|
|
#7
|
 |
|
Super Guru
Join Date: Jun 2004
Posts: 4,117
|
Part of the problem may be that you keep putting the semicolon outside of the quotation marks. This is incorrect:
Code:
onmouseover = "small( 'about' )";
This is correct:
Code:
onmouseover = "small( 'about' );"
The problem could also be any of the 41 errors the validator is reporting:
http://validator.w3.org/check?uri=ht...com%2Fjedco%2F
Tough to say beyond that.
Rys
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-21-2005, 06:38 AM
|
|
#8
|
 |
|
Battler (Level 3)
Join Date: Sep 2005
Posts: 26
|
1st sorry for the delay (GMT +3), 2nd, thanx for the help, I did change it:
http://www.digitalmedia-sol.com/jedco/index3.htmlbut still, can some one please point me to a good simple menu script. All the script I found searching do menus from scratch, including the titles not just the sub-titles, as you can see from the link, I have a vertical navigation bar made of images as button, what I need is simply, when a mouse is over an image (like the about button), a menu with the sub-titles appear.
Ghassan
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-21-2005, 11:33 AM
|
|
#9
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,918
|
Hi there gyonis,
check out the attachment, it is your code validated and script errors removed. 
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-23-2005, 08:51 PM
|
|
#10
|
 |
|
Battler (Level 3)
Join Date: Sep 2005
Posts: 26
|
That's amazing, you’re really a life saver, but there’s also couple of things that I want to ask you about:
1st. you removed the onfocus script for the newsletter test box, why, was affecting the other scripts.
2. You removed the link to the CSS file, and remove the style:
"style="position:absolute; width:100; height:97; z-index:1; left: 129; top: 170; background-color: #009900; layer-background-color: #009900; border: 1px none #cccccc" "
from the div tag, can't I return the style linking, and add the div style to the css file.
and if I removed the link to the css the text problem appear, in IE 5 it's fine, in 6 it's all screwed up, the alignment suppose to be to the left, but the text lines are in various directions!
So my questions is:
- Can I use other scripts without having a conflict with the menu script? and can I put them all in one big happy js file with no fear that something might come wrong?
- Can I link to the css file and add the "#about" style to it?
I think I should study more css and js and the actual coding rather on just focusing on the design concepts and usability.
Thanx again coothead, sorry for the questions, but I don't want to screw things up, I want it to be 100% perfect.
Ghassan
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-24-2005, 05:57 AM
|
|
#11
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,918
|
Hi there gyonis,
I am pleased that your life is no longer in danger.
Quote:
1st. you removed the onfocus script for the newsletter test box, why? was it affecting the other scripts?
2nd. You removed the link to the CSS file,
|
I did not remove these items. What has happened is that the code that I worked on was found at the link
that you provided in your second post to this thread. That code had neither of the items that you mentioned. 
Not to worry, though, I have put them in the new attachment.
Quote:
1. Can I use other scripts without having a conflict with the menu script?
2. And can I put them all in one big happy js file with no fear that something might come wrong?
|
1. yes.
2. probably.
Quote:
Can I link to the css file and add the "#about" style to it?
|
I have, as stated above, put the link in. All you need to do is place the extra rules that I have added to your code....
Code:
body {
margin:0px;
padding:0px;
}
#about {
position:absolute;
width:131px;
z-index:1;
left:131px;
top:173px;
background-color: #fc3;
}
form {
margin:0px;
}
...into your external stylesheet and remove my code from the page.
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-24-2005, 08:57 AM
|
|
#12
|
 |
|
Battler (Level 3)
Join Date: Sep 2005
Posts: 26
|
You're a great man  , are you really a postman  , if you were, you should think about quieting your day job, your expertise are needed else where
Thanx again
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-24-2005, 09:09 AM
|
|
#13
|
 |
|
~ bald headed old fart ~
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,918
|
Hi there gyonis,
Quote:
....are you really a postman
|
Yes that's what I do for a living....problem solving I do for fun and for free. 
__________________
|
|
Add to del.icio.us
Can you digg it?
|
|
|
KEEP TABS |
|
SPONSORS |
| |
|
| |
|
|
| |
|