Rollover button addition

T

tru marine

I have used a 3rd party software to create a rollover but and it gave me some
code at the end and I am trying to insert it into my current website.

Here is the code created.. any help?
<script language="JavaScript" src="mainmenu.js"></script>
 
R

Ronx

The code goes into the <head> section in code view.

Switch to Code View, then look for the tag </head>
Immediately before this type in the code, so you end up with:

<script language="JavaScript" src="mainmenu.js"></script>
</head>

Also change language="JavaScript" to type="text/javascript" thus:

<script type="text/javascript" src="mainmenu.js"></script>
</head>

Without this change there will be problems with some browsers.

The file mainmenu.js must be in the same folder as the page.
 
T

tru marine

I placed it in there and then I went back to design view and I tried to
insert the ".js" file in the layer box for that button but it is not
reconizing that file format when I try to point to it even though it is in
the same folder. What is the correct way to opoint back to the image file?
 
R

Ronx

The .js file goes into the <head> section in Code View as I explained.
It does NOT go anywhere in design view.

The code inside the .js file should handle all the "pointing" required.
The .js file itself should be placed in the same folder as the page.

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 
T

tru marine

I did that but the image is not showing that layer when I preview it in my
browser? There is a line above my first <head> should I place the code above
that as well?
 
R

Ronx

The code goes above </head> and absolutely nowhere else.

Publish the page and associated images and other files, and give a link
to the page here, then we can see what is happening.

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top