This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > September 2004 > Javascript Need Help! plz.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Javascript Need Help! plz.
|
|
| Evisuuuu 2004-09-29, 7:16 pm |
| Right.. what im trying to make is to include a javascript file into my HTML
file.
But it wont work with functions. Could any tell me what is wrong?
evisuuuu.
//--INDEX.HTML
<!-- include menu -->
<script type="text/javascript" src="__kern/javascript/js_Hmenu.js">
function Hmenu() ;
</script>
//--js_HMENU.JS
// MAIN Menu
inc_Hmenu =
'MENU » <A href="#home2" class="menu-top-text">O'
+ 'VER MIJ</A> | <A href="#home" class="menu-top'
+ '-text">MIJN PORTOFOLIO</A> ';
function Hmenu() {
// The function code goes here
document.write(inc_Hmenu);
}
| |
| David Stiller 2004-09-29, 7:16 pm |
| Evisuuuu,
By putting the phrase "function Hmenu()" into your HTML, you may be
redefining the Hmenu() function and cancelling it out. That <script> tag
should only pull in the external JS file, then call the appropriate function
(drop the word "function").
David
stiller ( at ) quip ( dot ) net
| |
| Evisuuuu 2004-09-29, 7:16 pm |
| Thanks for your reply, but it doesnt work so it seems. (i could be doin
something wrong)
any other ideas? or maybe u try testing this.
evisuuuu.
"David Stiller" <stiller-NO-SPAM-@quip.net> schreef in bericht
news:cjeql4$s1q$1@forums.macromedia.com...
> Evisuuuu,
>
> By putting the phrase "function Hmenu()" into your HTML, you may be
> redefining the Hmenu() function and cancelling it out. That <script> tag
> should only pull in the external JS file, then call the appropriate
> function
> (drop the word "function").
>
>
> David
> stiller ( at ) quip ( dot ) net
>
>
| |
| Evisuuuu 2004-09-29, 7:17 pm |
| Thank u verry much Angela, now it works.
Could u also tell me what i did wrong?
Evisuuuu
"~Angela, TMM" <angela@ILOVESNIPPETSdwfaq.com> schreef in bericht
news:cjet9p$1ai$1@forums.macromedia.com...
> Hi Evisuuu,
>
> Change this:
>
> //--INDEX.HTML
> <!-- include menu -->
> <script type="text/javascript" src="__kern/javascript/js_Hmenu.js">
> function Hmenu() ;
> </script>
>
> To this:
>
> //--INDEX.HTML
> <!-- include menu -->
> <script type="text/javascript"
> src="__kern/javascript/js_Hmenu.js"></script>
> <script type="text/javascript">
> Hmenu() ;
> </script>
>
> Good luck,
> ~Angela
> --
> Angela C. Buraglia, Founder:
> ~FAQs, Tutorials & Resources~ http://www.DreamweaverFAQ.com
> ~My Extensions~ http://www.dwfaq.com/go.asp?ID=AngelaX10
> DWfaq Support Newsgroup: news://support.dwfaq.com/support
>
> Co-Author with Joseph Lowery, Dreamweaver MX 2004 Killer Tips:
> http://www.dwkillertips.com
>
> Extension Developer for Cartweaver 2:
> http://www.cartweaver.com/features/extensionsuite/
>
> Remove the CAPS in my E-mail to reply off list.
>
>
>
> "Evisuuuu" <No_spam@thnx.no> wrote in message
> news:cjeqe4$ro7$1@forums.macromedia.com...
> HTML
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|