Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Javascript Need Help! plz.
 

Evisuuuu




quote this post edit post

IP Loged report this post

Old Post  09-30-04 - 12:16 AM  
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);
}






Post Follow-Up to this message ]
Re: Javascript Need Help! plz.
 

David Stiller




quote this post edit post

IP Loged report this post

Old Post  09-30-04 - 12:16 AM  
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




Post Follow-Up to this message ]
Re: Javascript Need Help! plz.
 

Evisuuuu




quote this post edit post

IP Loged report this post

Old Post  09-30-04 - 12:16 AM  
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
>
>




Post Follow-Up to this message ]
Re: Javascript Need Help! plz.
 

Evisuuuu




quote this post edit post

IP Loged report this post

Old Post  09-30-04 - 12:17 AM  
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 
>
>




Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 06:32 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Dreamweaver archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top