点击文章中图片查看下一页或下一篇

点击图片进入下一页,js代码:

//添加文章中的图片链接
function addImgLink(divID) {
var msgarea = getbyid(divID);
if(msgarea) {
var imgs = msgarea.getElementsByTagName('img');
for (i=0; i
if (imgs[i].parentNode.tagName.toLowerCase() != 'a') {
imgs[i].title = '点击图片进入下一页';
imgs[i].style.cursor = 'pointer';
imgs[i].onclick = function() { window.open('这里定义下一页的URL地址'); }
}
}
}
}

随机文章:

1、CSS样式编写的规范和常见问题
https://www.onexin.net/css-styles-to-prepare-specifications-and-frequently-asked-questions/

2、HTML Symbol Entities
https://www.onexin.net/html-symbol-entities/

3、数据库操作语句
https://www.onexin.net/database-operation-statement/

4、Wordpress Rewrite / Permalink内部过程分析
https://www.onexin.net/wordpress-rewrite-permalink-internal-process-analysis/

5、Centos 6.0 下LAMP环境搭建从入门到精通(yum命令)
https://www.onexin.net/centos-6-0-under-the-lamp-environment-to-build-from-the-entry-to-the-master-yum-command/

转载请注明出处:https://www.onexin.net/click-the-picture-to-see-the-next-article-or-the-next-one/

Leave a Reply

Your email address will not be published. Required fields are marked *