HOME  |    TRAINING  |   FREE TUTORIALS   |   JOBS
Find out more about our new RSS feed.
FREE Tutorial
FRONTPAGE 2000 AND JAVASCRIPT

CATEGORY
SEARCH OUR OTHER TUTORIALS

DESCRIPTION

Using JavaScript in conjunction with FrontPage features is easier if you know some of the oddities in using FrontPage.
Click here to be kept informed of our new Tutorials.


So you’ve found one of those cool free JavaScripts on the web and now you’re ready to plug it in to your FrontPage web. Most of the time this would not be a problem when using FrontPage. You just switch to HTML View and paste in the code, or use the Insert/Advanced/HTML command in Normal View and paste it in there. But here’s a scenario where many FrontPage beginners can run into trouble:

Let's say you're utilizing FrontPage's Shared Borders option (Format/Shared Borders) and you've found a "MouseOver Buttons" script that you would like to use to jazz up your site. Since you're using the Shared Borders command with your own buttons (FP won't let you directly edit the built in FP Navigation Bar) you may already know that you can edit the border pages directly.

Using the Tools/Web Setting/Advanced option will let you check the "Show document in hidden directories" feature. You can then see the _borders folder and edit your Shared Borders pages directly. So you open up your border page and add in the code using the instructions included with the script. Most likely this will include a two-part process. First you'll be told to paste the first part of your JavaScript between the <head> and </head> tags at the top of the page. Then you have to add in some stuff to your button <img scr> tags like a Name and MouseOver this and MouseOut that.

Now you've finished adding in the script and you can't wait to see the effect. Using your browser, you open up one of your pages that includes the border page and… nothing. What's going on? The buttons are there, but nothing happens when you put you mouse over them in your browser. You go back and re-check your work and double-check the instructions. It looks like you've done everything correctly, so what's the deal?

Even if you have done everything correctly, your script has no chance of working. Here's the reason why:

When FrontPage adds in the Shared Border page to your main page, it only uses the content between the <body> and </body> tags in the Border page.

So the script that you included in to the Border page between the <head> and </head> tags never gets added in with the main page. Bogus instructions? No, adding the script in the page header is standard procedure. So now what do you do?

Although scripts are commonly put into the header section of the page, they'll still work if you put them in the Body. So move your script from between the <head> and </head> tags to between the <body> and </body> tags. Just make sure the script is before the buttons <img src>.

Refresh the main page, and bingo! Mouse Over buttons!




7 RELATED COURSES AVAILABLE
MICROSOFT FRONTPAGE XP 2002 LEVEL 1; INTRODUCTION
To give an introduction to the Internet tools and features of Microsoft FrontPage XP 2002. Readers will create an....
MICROSOFT FRONTPAGE XP 2002 - BUILDING WEB SITES
To build on some existing MS FrontPage skills and/or user experience that may have been gained from our "Microsof....
MICROSOFT FRONTPAGE 2002 INTRODUCTION
This training course aims to give you the skills you need to build basic pages both for your company intranet and....
MICROSOFT FRONTPAGE 2000 INTRODUCTION
This training course aims to give you the skills you need to build basic pages both for your company intranet and....
MICROSOFT FRONTPAGE 2000 ADVANCED
To create and manage a website with Microsoft FrontPage 2000. You can use this course to prepare for MOUS Certifi....
 
0 RELATED JOBS AVAILABLE
CONTACT US
Monday 8th September 2008  © COPYRIGHT 2008 - VISUALSOFT