tailieunhanh - CSS Web Design For Dummies- P7
Tham khảo tài liệu 'css web design for dummies- p7', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 282 Part IV Advanced CSS Techniques script language VBScript function foryou msgbox A message for you end function script If you want to keep your script out of the HTML and in a separate file use the src attribute like this script type text javascript src script Ensure that your script file in ordinary text format like from Notepad is in the same directory as the .htm file holding the HTML code. The script is imported when the page is loaded just as images are imported with the img element. Executing Scripts Automatically upon Loading In the preceding examples the user must click a button before the script executes. If you want the script to execute when the page first loads just remove the function. In VBScript that means removing two lines function and end function like this script language VBScript msgbox A message for you script JavaScript employs braces to indicate the start and end of a procedure so remove both of the lines containing the braces to make a script execute when the page first loads script alert Hello HTML world script team Line - live informative Non-cost and Genuine Chapter 16 Programmatic CSS 283 When a Web page with script loads into the latest version of Internet Explorer Service Pack 2 the script won t immediately execute. Instead a message appears across the top of the browser window saying To protect your security Internet Explorer has restricted this file from showing active content that could access your computer. Click here for options. Go ahead and click here. Then choose Allow Blocked Content from the dialog box that appears. Now another warning pops up just in case you were delirious or roaring drunk when you made your choice. This second warning asks you if you re sure. Go ahead and click Yes. Now at long last you can see the effects of your script. Note that once you allow blocked content from one Web page any other pages you surf to are also permitted to send blocked content. IE only resets itself after you shut it .
đang nạp các trang xem trước