Home > Web Front-end > JS Tutorial > A relatively simple JS that complies with web standards calls the flash method_javascript skills

A relatively simple JS that complies with web standards calls the flash method_javascript skills

WBOY
Release: 2016-05-16 19:07:39
Original
966 people have browsed it

A bug that occurred during the Microsoft XP upgrade is that the flash inserted into the page using the traditional web page creation mode cannot be browsed normally. When the page is opened, there is a dotted box around the flash, which requires a click to browse normally. The following method is to solve this shortcoming, and Make flash comply with WEB standards. In addition, the most important thing is that all flash on the entire website can call this code, making your code more concise!


1. First create a flash.js JS file, and write

Copy the code The code is as follows:

function flash(ur,w ,h){
document.write('');
document.write ('');
document.write(' ');
document.write(' ');
document.write(' ');
document.write('');
document.write('');
document .write('
');
}

2. Write the code calling JS between and in the web page:
Copy code The code is as follows:



3. Then write the code to call flash in the main content of the web page (as long as it is flash, it can be called):
Copy code The code is as follows:




Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template