It may be a starting point for reference, related to Header Menu, JavaScript, image locations and Fireworks.
And in the topic of:
On-load javascript
It may be a starting point for reference, related to Header Menu, JavaScript, image locations and Fireworks.
And in the topic of:
On-load javascript
A New Starter again
Ok thanks for that got it working... however...
I used a drop down CSS menu
Which works fine other then when you view the products page like...http://jailhousedistro.com/index.php...&products_id=1
The menu works fine on other pages like http://jailhousedistro.com/
The drop down menu will come up once then won't come back up any ideas how to fix this? I think it maybe the image popup javascript conflicting with my menu javascript.
Have I put something in a incorrect area?
In line 19 of your page source, <script> missing '>' for end of tag.
Note at the end of line, it should beCode:<script type="text/javascript" src="/includes/templates/jscript_header.js"</script>
Will it been caused by the "> of your file of jscript_header.jsCode:<script type="text/javascript" src="/includes/templates/jscript_header.js"></script>
Try remove it and see what happen.Code:1MM_preloadImages('bob_r2_c2_f2.gif','bob_r2_c2_f3.gif','bob_r3_c4_f2.gif','bob_r3_c4_f3.gif','bob_r3_c6_f2.gif','bob_r3_c6_f3.gif','bob_r3_c12_f2.gif','bob_r3_c12_f3.gif','bob_r4_c8_f2.gif','bob_r4_c8_f3.gif','bob_r4_c10_f2.gif','bob_r4_c10_f3.gif');">![]()
A New Starter again
thanks for pointing those out! :)
However
Didn't seem to solve the issue anyother ideas what maybe causing it?
Your page is with errors and some of the insertions of orverride and javascript seems not right.
At least, from the source, the address are wrong.
For time saving, instead of guessing and prevent errors from both sides.Code://--></script> <script type="text/javascript" src="/includes/templates/jscript_header.js"></script> <script language="JavaScript1.2" type="text/javascript" src="mm_css_menu.js"></script>
If possible give the javascripts and related files. I will carry out the basic test in my side and give you the basic report.![]()
A New Starter again
http://jailhousedistro.com/files.zip
Thats all the files I edited + the gifs.
Thanks for the help. Let me know if you need anything else.
If anyone else knows what might be wrong your welcome to give those files a look too. :)
Wanted to post it here so people will know how to fix it if it happens to them. I'll post the solution here also.
First, you are using the default demo template - classic.
It is not wise to use it directly for your add on and modifications, it will be over wirte in the future upgrade. And you will create more troubles in upgrading.
Suggest to use your own template for that and it is easy.
My steps,
1. copy the classic template directory to a new template directory, called
includes/templates/classic_1
2. and modify the file for your own use
includes/templates/classic_1/template_info.php
3. For example, to read asCode:$template_name = 'Classic Contemporary Green';
Then within a minute or two, you can clone a template to use.Code:$template_name = 'My Classic Contemporary Green';
And for the follwing example, I will use the directory as follow:
includes/templates/classic_1
=====
Return to your questions.
For the test with your files,
1. the following file is not needed or necessary to modify, it can be removed
includes/templates/classic_1/common/html_header.php
2. For the bob.css
I copied, renamed and saved it to the directory as below:
includes/templates/classic_1/css/stylesheet_bob.css
3. The image files
3a. For the image files with names begin with mmmenu?.*, I copied and save them all to:
includes/templates/classic_1/images/mmmenu?.*
For the above images, the override can fetch them in my test, please confirm yourself in your site.
3b. And the other images still need in the root although I tried to hard code the images loacations.
It seems that depended on your javascript.
4. For the two javascript files
4a. for the jscript_header.js, it is for onload. It should be rename and save as:
includes/templates/classic_1/jscript/on_load/on_load_header.js
For it preload the graphics and involves file locations.
Please refer to the step #3 above.
Otherwise, it need to change the image file loacations.
Normally, it can be related to current template and images directory ../images/
and example as follow:
4b. for the mm_css_menu.js, it is normal javascript. It should be rename and save as:Code:MM_preloadImages('../images/bob_r2_c2_f2.gif', .....
includes/templates/classic_1/jscript/jscript_mm_css_menu.js
5. for the head.htm
I copied and save it to:
includes/templates/classic_1/common/header.htm
I had tried to change the image source location of the graphics, but without success.
Please refer to above step 3b.
6. For the tpl_header.php
I use the original one which copied from
includes/templates/template_default/common/tpl_header.php
and changed as follow and according to your file, and this seems better.
It only remark out the functions which may you don't need.
And insert your <?php include 'header.htm' ?> after it.
Please note:Code:<!--bof-branding display--> <!-- <div id="logoWrapper"> ..... <br class="clearBoth" /> --> <!--eof-branding display--> <?php include 'header.htm' ?> <!--eof-header logo and navigation display-->
In my test follow the steps above. It works and show menus with each page and seems without the problem at your site.
However, your javascript create errors. For each time the mouse hover to and off of each group of cell of the menus. The errors reported by my test programs and IE.
This also occurred in your site.
From FireBug, the Firefox's extension, report the following errors:
Please take care about it.Code:MM_preloadImages is not defined - index.php?main_pa... (line 1) MM_nbGroup is not defined
A New Starter again