网页上怎么用js写广告啊

1.一个JS广告代码,如何插入网页中如果直接在网页中用 包含js代码如果有现成的JS文件用LINK使用外部js文件!一般人都不会自己写,你连怎么插入都不知道,我想你应该是拿别人的脚本来用,LINK方式多一点. 这就是一个完整的语句.
<scri pt ty pe=" tex t/jav ascript " src="http://www.xuexi88.com/zhishi/htt p://ww w.XX XX.com/ 路 径/.JS文件名 .js" > </ sc rip t>
【网页上怎么用js写广告啊】我加了这么多空格也不行吗?人家不给发带脚本的原始语句.
2.网站里用JS文件做图片广告,怎么把这个图片广告做成响应式的使用css3进行各个屏幕端的css样式构造,如:
.wd {
width:1280px;
height:200px;
background:red;
}
@media(max-width:1280px){
.wd{
width:960px;
height:160px;
bakcground:yellow;
}
}每范围的屏幕大小均可定义不同的css.
3.谁会用javascript写页面置底广告网站上复制了一段代码供你参考,希望对你有帮助,记得采纳,谢谢! 网页特效观止|JsCode.CN|---页面右下角弹出类似QQ或MSN的消息提示<script language=JavaScript> <!-- /**//* ** ================================================================================================== ** 类名:CLASS_MSN_MESSAGE ** 功能:提供类似MSN消息框 ** 示例: --------------------------------------------------------------------------------------------------- //width:层宽度、height:层高度、caption:层的标题、title:题目类型、content:内容、UserID:对应的数据库的ID号 var MSG = new CLASS_MSN_MESSAGE(width,height,caption,title,message,content,UserID){ MSG.show(); --------------------------------------------------------------------------------------------------- ** 作者:ttyp ** 邮件:[email protected] ** 日期:2005-3-18 ** ================================================================================================== **/ /**//* * 消息构造 */ var oPopup = window.createPopup(); //IE5.5+ var windowsUrl="模拟QQ右下角提示窗体.htm";//var windowsUrl=null;//这个是Windows的连接主地址:修改地址//width:层宽度、height:层高度、caption:层的标题、title:题目类型、content:内容、UserID:对应的数据库的ID号function CLASS_MSN_MESSAGE(width,height,caption,title,message,content,UserID){ // this.id = id; this.title = title; this.caption= caption; this.message= message; //this.target = target; //this.action = action; this.width = width?width:200; this.height = height?height:120; this.timeout= 150; this.speed = 20; this.step = 1; this.right = screen.width -1; this.bottom = screen.height; this.left = this.right - this.width; this.top = this.bottom - this.height; this.timer = 0; this.pause = false; this.close = false; this.autoHide = true;contt=content;//内容IDD=UserID;} /**//* * 隐藏消息方法 */ CLASS_MSN_MESSAGE.prototype.hide = function(){ if(this.onunload()){ var offset = this.height>this.bottom-this.top?this.height:this.bottom-this.top; var me = this; if(this.timer>0){ window.clearInterval(me.timer); } var fun = function(){ if(me.pause==false||me.close){ var x = me.left; var y = 0; var width = me.width; var height = 0; if(me.offset>0){ height = me.offset; } y = me.bottom - height; if(y>=me.bottom){ window.clearInterval(me.timer); me.Pop.hide(); } else { me.offset = me.offset - me.step; } me.Pop.show(x,y,width,height); } } this.timer = window.setInterval(fun,this.speed) } } /**//* * 消息卸载事件,可以重写 */ CLASS_MSN_MESSAGE.prototype.onunload = function() { return true; } /**//* * 消息命令事件,要实现自己的连接,请重写它 * */ CLASS_MSN_MESSAGE.prototype.oncommand = function(){ //this.close = true; this.hide();//获取到ID号var xID=oPopup.document.getElementById("hiddenID").value; window.open(windowsUrl+"?id="+xID);//连接到的地址------------------可根据情况自己填写参数-------------------------需要修改 } /**//* * 消息显示方法 */ CLASS_MSN_MESSAGE.prototype.show = function(){ this.Pop = oPopup; var w = this.width; var h = this.height; var str = "" str += "" str += "" str += "" str += "" + this.caption + "" str += "" str += "*" str += "" str += "" str += "" str += "" + this.title。