Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-20-2005, 08:20 AM
  #1
gyonis
Battler (Level 3)
 
gyonis's Avatar
 
Join Date: Sep 2005
Posts: 26
iTrader: (0)
gyonis has disabled reputation
Unhappy 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
gyonis is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2005, 08:24 AM
  #2
maskd
Swordman (Level 9)
 
maskd's Avatar
 
Join Date: Sep 2005
Location: NSW, Australia
Posts: 88
iTrader: (0)
maskd is an unknown quantity at this point
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.
maskd is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2005, 08:41 AM
  #3
RysChwith
Super Guru
 
Join Date: Jun 2004
Posts: 4,117
iTrader: (0)
RysChwith will become famous soon enough
You can do it this way:
Code:
<body onload = "preloadImages(); menu()">
My usual recommendation for menus is this:

http://www.alistapart.com/articles/dropdowns

Although it requires a fair understanding of CSS.

Rys
RysChwith is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2005, 09:31 AM
  #4
gyonis
Battler (Level 3)
 
gyonis's Avatar
 
Join Date: Sep 2005
Posts: 26
iTrader: (0)
gyonis has disabled reputation
Exclamation

"<body onload = "preloadImages(); menu()">"

I did that, now the preloader work, but the menu script doesn't, and the page is all screwed up, the text alignment, the table width ..., you can see the code here:
http://www.digitalmedia-sol.com/jedco/
gyonis is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2005, 09:33 AM
  #5
gyonis
Battler (Level 3)
 
gyonis's Avatar
 
Join Date: Sep 2005
Posts: 26
iTrader: (0)
gyonis has disabled reputation
... the menu should be on the about button
gyonis is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2005, 11:23 AM
  #6
gyonis
Battler (Level 3)
 
gyonis's Avatar
 
Join Date: Sep 2005
Posts: 26
iTrader: (0)
gyonis has disabled reputation
Unhappy

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
gyonis is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2005, 01:27 PM
  #7
RysChwith
Super Guru
 
Join Date: Jun 2004
Posts: 4,117
iTrader: (0)
RysChwith will become famous soon enough
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
RysChwith is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-21-2005, 06:38 AM
  #8
gyonis
Battler (Level 3)
 
gyonis's Avatar
 
Join Date: Sep 2005
Posts: 26
iTrader: (0)
gyonis has disabled reputation
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
gyonis is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-21-2005, 11:33 AM
  #9
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,918
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
Hi there gyonis,

check out the attachment, it is your code validated and script errors removed.
Attached Files
File Type: zip jedco.zip (2.8 KB, 27 views)
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-23-2005, 08:51 PM
  #10
gyonis
Battler (Level 3)
 
gyonis's Avatar
 
Join Date: Sep 2005
Posts: 26
iTrader: (0)
gyonis has disabled reputation
Thumbs up

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
gyonis is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-24-2005, 05:57 AM
  #11
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,918
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
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.
Attached Files
File Type: zip jedco.zip (3.0 KB, 22 views)
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-24-2005, 08:57 AM
  #12
gyonis
Battler (Level 3)
 
gyonis's Avatar
 
Join Date: Sep 2005
Posts: 26
iTrader: (0)
gyonis has disabled reputation
Thumbs up

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
gyonis is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-24-2005, 09:09 AM
  #13
coothead
~ bald headed old fart ~
 
coothead's Avatar
 
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 7,918
iTrader: (0)
coothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to beholdcoothead is a splendid one to behold
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.
__________________
coothead is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 05:42 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.