I've cracked it. I removed the openpeeker function from the body tag and it all works fine. Thank you guys for all your help. I'm not sure how I missed it but openPeeker was an old function that I had forgotten I had removed from functions.js! No wonder it was trying to get an object that...
When I debug the code the problem appears to be writeMenus() in the body tag. The spelling is all consistent. I've gone over all of it many times without success. I'm sure it must be something very simple.
My menu code in functions.js was submitted in one of my earlier posts today. I can...
Here is my code in default.asp (which I have removed all unnecessary lines but error still keeps occuring):
<%@ Language=VBScript %>
<% OPTION EXPLICIT %>
<!--#include file="includes/Browsercheck.asp"-->
<!--#include file="includes/Connection.asp"-->
<!--#include...
Hi Jeff
I'll try what you suggest thanks. Not sure what you mean when you mention validating my html agains the doctype. I have tried removing all code other than the DisplayMenu() and body tag (specifically the onLoad call to writeMenus()) and it is certainly related to both of these...
Yes I agree it appears to be something to do with the order of how the writeMenus() and DisplayMenu() functions are called.
In functions.js, writeMenus() does come before DisplayMenu(), however I have inserted test alert statements to see which is actually called first in functions.js when...
Hi
I have the following simple function in a file called functions.js (which is located in a subfolder called "includes"):
function DisplayMenu(){
document.write("Test");
}
I then have an ASP file called default.asp which calls the function above as follows:
<!--#include...
Anyone? My main concern is how to ensure the menu is resized if screen resolution is altered. Is there a function that can be applied to make this automatic?
Thank you in advance.
Hi
Ok, I have given up on my original request as time is getting on and I haven't been able to find a solution. For now I am going to keep the images static without any image swapping.
However I have another question. I have created a file called functions.js which includes all the menu code...
Yes I appreciate all your help guys. Thank you. I can see what you mean about testing the code on other browsers however that will be for the future as my internal intranet only uses IE6. However if I make the menu system available to the public I will look into making sure it is tested and...
I'm not sure what your last comment means and what help it is. I'm developing a menu system for my internal network which runs on IE. Thank you for your help Vragabond. I'll take a look at the link you mention.
Hi thank you for your reply. I'm not sure why I should download Firefox. Surely user's browsers will mainly be IE hence I need to ensure it works on this platform?
Hi
Thank you for your help.
Here is my code using what you have written above and part of my menu system which accesses the CSS style:
<style type="text/css">
<!--
#test {
background:url(images_navigation/welcome.gif);
}
#test:hover {...
Thank you for your reply. I've tried the above by calling "test" as a class and also "id" within the image and both HREF tags but without success. The hover part of the code above does not work. Is it vital that I use a DIV tag? I'm assuming it's not possible to swap an image in a CSS class...
I've just checked and I have already tried creating a class which sets a background image for my tags. However this is not what I need unfortunately - I need a simple CSS class that can actually swap the current image for another one. Is this possible in CSS? Thank you for any help.
Thank you for your reply. Are you able to supply an example as I think I may have tried this already without success but I'm not sure if I've been doing it correctly?
Thanks. I had a look but it tends to deal in specific images. My images are GIF images but have a colour in them. The function in the website you mentioned requires the image to be plain with no colour.
Do you know of any other websites or does anyone know of any good CSS function classes...
Hi
Please can anyone tell me if there is a CSS stylesheet function class that can swap images using OnMouseOver or Rollover? I have a menu system and would like to apply a class to the current image that is representing each root menu option.
Thank you for any help.
Les
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.