Floating Ads Display Script class (Vbs,js dual version)
Source: Internet
Author: User
When writing a project to use the advertising module, in order to not use ASP to generate scripting code is more cumbersome, so the idea of writing script class, that is, a class of script code to control all the same page display of floating ads. But in the process of writing found that the JS script in the settimeout can not use the method of class. Strange, whether I was mistaken or JS script can not do this?? But the VBS script is OK! I faint ...
don't say, paste code:
[VBS script code]
The following code fragment:
'/**************** floating ads display class ****************************************************
'/* Author: Dead Fish in the water
'/* scripting language: VBS
'/* Usage:
'/* Set adver1=new adverclass
'/* adver1.objname= ' Adver1 ' sets the current object name [itself object variable name]
'/* adver1.imgtype=1 ' picture type 0 = normal picture 1=flash animation
'/* adver1.printhtml "http://edu.qq.com/flash/moto-button.swf", "http://www.chinese.bj.cn/' target=" _blank " >http://edu.qq.com/flash/moto-button.swf "," http://www.chinese.bj.cn/"," What is this
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.