Zaloguj | Zarejestruj | FAQ
Anonymous

Scripts in HTML

+ Odpowiedz

Posty: 8 Strona 1 z 1


Scripts in HTML

przez iDana » Wt lis 02, 2010 7:20 am

Do you write your scripts separetaly and insert them into HTML?
Avatar użytkownika

iDana

  • Posty: 60
  • Dołączył(a): Wt paź 26, 2010 10:05 am
--
iDana

Re: Scripts in HTML

przez Malik » Wt lis 02, 2010 12:59 pm

Can you be more specific in what kind of scripts?
Avatar użytkownika

Malik

  • Posty: 12
  • Dołączył(a): N paź 31, 2010 8:09 pm

Re: Scripts in HTML

przez HTML.net » Wt lis 02, 2010 4:48 pm

For a site like HTML.net I use a lot of including:

- I have one external style sheet
- I use PHP to include the menus, ads, footer etc.
- I have a few javascripts included as well.

This makes it a lot easier to update the website: I can add a new menu item on all pages by updating only one file. Or change background color on all pages again by updating only one file. Or implement new ads on the whole webiste with a single update. Etc.

- Andreas, HTML.net
Avatar użytkownika

HTML.net
Site Admin

  • Posty: 1194
  • Dołączył(a): So wrz 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: Scripts in HTML

przez iDana » Wt lis 02, 2010 5:30 pm

HTML.net napisał(a):For a site like HTML.net I use a lot of including:

- I have one external style sheet
- I use PHP to include the menus, ads, footer etc.
- I have a few javascripts included as well.

This makes it a lot easier to update the website: I can add a new menu item on all pages by updating only one file. Or change background color on all pages again by updating only one file. Or implement new ads on the whole webiste with a single update. Etc.

Thanks Andreas but do you do your scripts on note pad or what do you use?

- Andreas, HTML.net
Avatar użytkownika

iDana

  • Posty: 60
  • Dołączył(a): Wt paź 26, 2010 10:05 am
--
iDana

Re: Scripts in HTML

przez HTML.net » Wt lis 02, 2010 7:05 pm

My favorite editor is Editplus - which is a simple text editor but with syntax highlighting.

- Andreas, HTML.net
Avatar użytkownika

HTML.net
Site Admin

  • Posty: 1194
  • Dołączył(a): So wrz 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: Scripts in HTML

przez jaantjezensis » Śr lis 03, 2010 11:50 am

The <script> tag is used to define a client-side script, such as a JavaScript.
The script element either contains scripting statements or it points to an external script file through the src attribute.
The required type attribute specifies the MIME type of the script.
Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
<script type="text/javascript">
document.write("Hello World!")
</script>
Avatar użytkownika

jaantjezensis

  • Posty: 4
  • Dołączył(a): Śr lis 03, 2010 4:29 am

Re: Scripts in HTML

przez Zachariahbroune » Cz gru 02, 2010 10:22 am

<html>
<body>

<script type="text/javascript">
document.write("Hello World!")
</script>
<noscript>Welcome,/noscript>

<p>New Wolrd is so BeautifulmYou like it.</p>

</body>
</html>
Avatar użytkownika

Zachariahbroune

  • Posty: 5
  • Dołączył(a): Cz gru 02, 2010 6:25 am

Re: Scripts in HTML

przez Jacintarayenz » Wt gru 28, 2010 7:48 am

<script type="text/javascript">
document.write("Hello World!")
</script>
<noscript>Sorry, your browser does not support JavaScript!</noscript>
Avatar użytkownika

Jacintarayenz

  • Posty: 5
  • Dołączył(a): Wt gru 28, 2010 5:22 am


+ Odpowiedz

Strona 1 z 1