1. 看考云 > 知识库 >

js广告代码,网站里的广告条为什么我在查看源文件里看不到js代码

本文目录索引

1,网站里的广告条为什么我在查看源文件里看不到js代码?

实际js地址
http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/portal_flash.js
改过后的可以直接看图的js代码
<SCRIPT language=javascript
type=text/javascript>

imgUrl1="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/img01.jpg";
imgtext1="11"
imgLink1=escape("http://www.mb5u.com/");
//imgLink1="";

imgUrl2="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/img02.jpg";
imgtext2="22"
imgLink2=escape("http://www.mb5u.com/");
//imgLink2="";


imgUrl3="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/img03.jpg";
imgtext3="33"
imgLink3=escape("http://www.mb5u.com/");
//imgLink3="";

imgUrl4="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/img04.jpg";
imgtext4="44"
imgLink4=escape("http://www.mb5u.com/");
//imgLink4="";


var focus_width=600
var focus_height=185
var text_height=0
var swf_height = focus_height+text_height

var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4
var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4
var flashCode = '';
flashCode = flashCode + '';
flashCode = flashCode + '';
flashCode = flashCode + '';
flashCode = flashCode + '';
flashCode = flashCode + '';
document.write(flashCode)

//觉得好就给分吧 楼上说的懒人确实有很多焦点轮显效果

网站里的广告条为什么我在查看源文件里看不到js代码?

2,JS如何在页面中插入HTML代码

步骤 1、新建一网页文件“sample.html",用记事本或其它文本编辑软件(如UltraEdit)打开,输入如图所示的HTML代码。该网页文件包括一个蓝色的字符串,一个按钮和一个文本框。 2、JS代码可插入到”head"标签之间。编写Javascript代码,代码内容如图所示,并将该段代码复制到网页文件”sample.html“中标签”"和“之间,然后查看网页文件的显示内容。

3,如何修改js代码,增加左侧的弹出广告

不会被屏蔽的网页右下角漂浮窗口代码 #msg_win{border:1px solid #A67901;background:#EAEAEA;width:300px;position:absolute;left:0;font-size:12px;font-family:Arial;margin:0px;display:none;overflow:hidden;z-index:99;} #msg_win .icos{position:absolute;top:2px;*top:0px;right:2px;z-index:9;} .icos a{float:left;color:#833B02;margin:1px;text-align:center;font-weight:bold;width:14px;height:22px;line-height:22px;padding:1px;text-decoration:none;font-family:webdings;} .icos a:hover{color:#fff;} #msg_title{background:#FECD00;border-bottom:1px solid #A67901;border-top:1px solid #FFF;border-left:1px solid #FFF;color:#000;height:25px;line-height:25px;text-indent:5px;} #msg_content{margin:0px;width:300px;height:300px;overflow:hidden;} _× 标题 var Message={ set: function() {//最小化与恢复状态切换 var set=this.minbtn.status == 1?[0,1,'block',this.char[0],'最小化']:[1,0,'none',this.char[1],'恢复']; this.minbtn.status=set[0]; this.win.style.borderBottomWidth=set[1]; this.content.style.display =set[2]; this.minbtn.innerHTML =set[3] this.minbtn.title = set[4]; this.win.style.top = this.getY().top; }, close: function() {//关闭 this.win.style.display = 'none'; window.onscroll = null; }, setOpacity: function(x) {//设置透明度 var v = x >= 100 ? '': 'Alpha(opacity=' + x + ')'; this.win.style.visibility = x 0 ? "floor": "ceil"],c = c || 0.1; return function() {return [a += cMath((b - a) * c), a - b]} }, getY: function() {//计算移动坐标 var d = document,b = document.body, e = document.documentElement; var s = Math.max(b.scrollTop, e.scrollTop); var h = /BackCompat/i.test(document.compatMode)?b.clientHeight:e.clientHeight; var h2 = this.win.offsetHeight; return {foot: s + h + h2 + 2+'px',top: s + h - h2 - 2+'px'} }, moveTo: function(y) {//移动动画 clearInterval(this.timer); var me = this,a = parseInt(this.win.style.top)||0; var fx = this.fx(a, parseInt(y)); var t = 0 ; this.timer = setInterval(function() { t = fx(); me.win.style.top = t[0]+'px'; if (t[1] == 0) { clearInterval(me.timer); me.bind(); } },10); }, bind:function (){//绑定窗口滚动条与大小变化事件 var me=this,st,rt; window.onscroll = function() { clearTimeout(st); clearTimeout(me.timer2); me.setOpacity(0); st = setTimeout(function() { me.win.style.top = me.getY().top; me.show(); },600); }; window.onresize = function (){ clearTimeout(rt); rt = setTimeout(function() {me.win.style.top = me.getY().top},100); } }, init: function() {//创建HTML function $(id) {return document.getElementById(id)}; this.win=$('msg_win'); var set={minbtn: 'msg_min',closebtn: 'msg_close',title: 'msg_title',content: 'msg_content'}; for (var Id in set) {this[Id] = $(set[Id])}; var me = this; this.minbtn.onclick = function() {me.set();this.blur()}; this.closebtn.onclick = function() {me.close()}; this.char=navigator.userAgent.toLowerCase().indexOf('firefox')+1?['_','::','×']:['0','2','r'];//FF不支持webdings字体 this.minbtn.innerHTML=this.char[0]; this.closebtn.innerHTML=this.char[2]; setTimeout(function() {//初始化最先位置 me.win.style.display = 'block'; me.win.style.top = me.getY().foot; me.moveTo(me.getY().top); },0); return this; } }; Message.init();这个其实跟你提供的只改了 #msg_win 的样式 left:0; 以前是 right:0

4,网页JS弹出广告代码,头部,右下角,网页中漂浮,对联广告代码等大全

1.最简单的方法: public static String reverse1(String str) { return new StringBuffer(str).reverse().toString(); } 2.最常用的方法: public static String reverse3(String s) { char[] array = s.toCharArray(); String reverse = ""; //注意这是空,不是null for (int i = array.length - 1; i >= 0; i--) reverse += array[i]; return reverse; } 3.常用方法的变形: public static String reverse2(String s) { int length = s.length(); String reverse = ""; //注意这是空,不是null for (int i = 0; i < length; i++) reverse = s.charAt(i) + reverse;//在字符前面连接, 而非常见的后面 return reverse; }

5,求右下角弹出广告的JS代码,就是打开网页,右下角划上来的小窗口

绵阳整形美容医院抖动窗口关键函数
2012-09-04 12:49:56
var suspendcode=''+""+''+'' +''
document.write(suspendcode);

$(document).ready(function(){
$('#lovexin1').css('display','block');
FollowDiv = {
follow : function(){
$('#lovexin1').css('position','absolute');
$(window).scroll(function(){
var f_top = $(window).scrollTop() + $(window).height() - $("#lovexin1").outerHeight();
$('#lovexin1').css( 'top' , f_top );
});
}
}

if($.browser.msie && $.browser.version == 6) {
FollowDiv.follow();
}
shake();
repeat = setInterval(shake,10000);//这里repeat是全局,在hideLovexin1函数中清空
//绑定点击事件

});
function hideLovexin1()
{
$('#lovexin1').css('display','none');
window.setTimeout("show_doudong()",40000);


//clearInterval(repeat);
}

function shake(){
//window.console.log('shake')
var a=['bottom','right'],b=0;
var u=setInterval(function(){
$('#lovexin1').css( a[b%2] , (b++)%4<2?0:4 );
if(b>17){
clearInterval(u);
b=0;
}
},30)
}
function show_doudong()
{
$('#lovexin1').css('display','block');
}

6,在百度广告管家中,如何使用JS调用广告位代码?

1、请获取支持JS调用的一段式代码; 2、在JS文件中,例如1.js,使用document.write()方法写入广告位代码。一个JS只能调一段代码。 方法一: document.write('BAIDU_CLB_SLOT_ID = "1";'); document.write(''); 方法二: document.writeln("<script type= "text /javascript " >BAIDU_CLB_SLOT_ID = "1 ";< /script>"); document.writeln("<script type= "text /javascript " src= "http: / /cbjs.baidu.com /js /o.js ">< /script>") 3、在页面上广告位的位置,引用该JS文件,例如: 注: 在IE下,通过一个JS调用多个广告位的投放方式不可行(非IE浏览器可以)。 原因是IE浏览器自身机制的问题:在IE下,JS脚本加载的方式不是严格按照脚本块来解析并解释的,而是按照HTML字面上的脚本块进行。 因此,建议使用多个JS分别调用不同的广告位,一个JS仅调用一个广告位。 更多问题,请到百度广告管家帮助频道查询:http://yingxiao.baidu.com/support/adm/index.html 了解更多百度推广产品信息,查看百度营销中心:http://pro.baidu.com/

7,在JS中调用多个百度广告管家广告位,为什么只有一个能正常显示广告?

账户管家是管理多个百度推广账号的平台。通过账户管家,可以绑定多个百度推广账号。在账户管家中,可以直接登陆被绑定的推广账号,也可以进行操作管理,可以批量查看数据报告。

(1)管理自己账户:如果已经拥有自己的百度推广账户,请选择管理自己账户。通过账户管家账户,您可以绑定属于自己的推广账户。
(2)管理他人账户:如果您是第三方SEM代理商,想要代理客户管理其百度推广账户,请选择管理他人账户。通过账户管家,您可以绑定您代理的百度推广账户。

更多问题,请到推广客户端帮助频道查询:http://yingxiao.baidu.com/support/editor/index.html
了解更多百度推广信息,请查看:http://e.baidu.com/

8,织梦系统(V57版本)后台怎么添加广告呢?还有怎么调用标签代码?求详细步骤?

织梦的广告代码 默认有一些代码,但是呢,这些仅有的广告代码肯定不能满足我们的要求,这就需要我们自己添加了: 1.首先进入织梦系统后台——模块——广告管理: 新增一个广告 填写广告标识(使用英文或数字表示的简洁标识) 可以现在加入一个广告代码或者以后再来添加 确定! 2.点击广告管理后的“代码” 进入如下页面: 这里有两种广告代码的形式: 织梦cms标签调用代码:这个代码采用的是dedecms标签的形式,所以在加入此代码或者是更改了广告代码之后就需要重新生成页面才能显示广告; js调用代码:我们推荐使用这个js调用,后台更改广告代码之后就会自动显示更改后的广告; 3.加入广告代码 这个就不多说了,你想要在网站的那里显示广告就把相应的代码加入到网站的模板中。

9,求一段 广告固定在网页右下角的代码(CSS或JS都行),谢谢!!


function repos(x,y){ //x、y分别是你广告框的宽度和高度
layid = document.getElementById("ddiv"); //ddiv的广告框div的id
layid.style.left = (document.documentElement.scrollLeft + document.documentElement.clientWidth - x)+"px";
layid.style.top = (document.documentElement.scrollTop + document.documentElement.clientHeight - y)+"px";
}


这是广告框的css:style="position:absolute; z-index:1; width:175px; height:80px"

然后把上面这个repos(x,y)函数同时用到onload、onscroll、onresize的事件中