![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have read search engine tutorials advising that javascript code should be in a separate file off the page. |
|
Using Deamweaver 4.0. |
#3
| |||
| |||
|
|
I have read search engine tutorials advising that javascript code should be in a separate file off the page. It's a good practice to do this, but it cannot affect your search engine ranking. Open notepad, paste this in - function MM_swapImgRestore.......etc} function MM_findObj...etc} function MM_swapImage...etc} function openPictureWindow_Fever.etc("","newWindow",".....e tc function MM_openBrWindow}..etc function MM_preloadImages() { //v3.0.....etc Note - there is no HTML - only javascript function definitions. Save the file in your site as external.js or something. Then in the HTML page's head, do - script type="text/javascript" src="external.js"></script Be aware that in DW4, if you subsequently edit any behavior on the page that javascript will get written BACK to the head. In addition, if you add any new behaviors to the page, that js will also get written to the head. -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.dreamweavermx-templates.com - Template Triage! http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ================== "JE" <je (AT) naturesfood (DOT) net> wrote in message news:djnt2l$145$1 (AT) forums (DOT) macromedia.com... Using Deamweaver 4.0. |
#4
| |||
| |||
|
|
Many thanks Murray... ===================== "Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message news:djntqs$25i$1 (AT) forums (DOT) macromedia.com... I have read search engine tutorials advising that javascript code should be in a separate file off the page. It's a good practice to do this, but it cannot affect your search engine ranking. Open notepad, paste this in - function MM_swapImgRestore.......etc} function MM_findObj...etc} function MM_swapImage...etc} function openPictureWindow_Fever.etc("","newWindow",".....e tc function MM_openBrWindow}..etc function MM_preloadImages() { //v3.0.....etc Note - there is no HTML - only javascript function definitions. Save the file in your site as external.js or something. Then in the HTML page's head, do - script type="text/javascript" src="external.js"></script Be aware that in DW4, if you subsequently edit any behavior on the page that javascript will get written BACK to the head. In addition, if you add any new behaviors to the page, that js will also get written to the head. -- Murray --- ICQ 71997575 Team Macromedia Volunteer for Dreamweaver (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.dreamweavermx-templates.com - Template Triage! http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes ================== "JE" <je (AT) naturesfood (DOT) net> wrote in message news:djnt2l$145$1 (AT) forums (DOT) macromedia.com... Using Deamweaver 4.0. |
![]() |
| Thread Tools | |
| Display Modes | |
| |