untitled

(John Hannent) #1
When you write script for a browser, it’s like embedding a computer program
into your HTML. Clearly a Web site run by someone from the dark side —
those disturbed, childish virus authors — could easily cause some damage
if you visited their site. The script languages have some built-in safeguards.
For example, they have no commands to access the hard drive. However,
canny evildoers know ways around this, so some people configure their
browsers to refuse scripts. (To do this in Internet Explorer, choose Tools➪
Internet Options➪Security➪Custom Level and select the Disable or Prompt
(Ask First) buttons under Scripting.) Also, if you’ve installed the latest
Microsoft security packs, you’ll see a small message at the top of Internet
Explorer (see Figure 13-10) when the preceding .htm file is loaded into the
browser. It warns that your page contains “active content.” If the user clicks
the warning, the scripting on the page is then allowed to execute.

Transitions between Pages ........................................................................


Would you like your entire Web page to fade in (or otherwise transition)
when the user first visits your site? You can do whole-page transitions by just
adding a little so-called “meta” code to your HTML code.

Figure 13-9:
After the
transition
is finished,
you see
only the
second
graphic.

246 Part III: Adding Artistry: Design and Composition with CSS

Free download pdf