-
要实现手机站点击后显示菜单的功能,通常需要结合HTML、CSS和JavaScript来编写代码。下面是一个简单的例子,展示了如何实现这一功能: HTML结构: html <!DOCTYPE html>
部分JS效果2024-03-25 -
要实现两个列表之间通过鼠标悬停列表名来切换显示内容的功能,你可以使用HTML、CSS和JavaScript。下面是一个简单的例子,演示了如何实现这一功能: HTML:<div class="list-switcher">
部分JS效果2024-03-07 -
屏蔽 IE 浏览器 //Kill XP and IE8 (function() { var ua = navigator.userAgent; var res = /Windows NT (\\d+\\.\\d+)/.exec(ua); var xpOrLower = res && JSON.parse(res[1]) < 6;
部分JS效果2022-08-15 -
//屏蔽右键菜单 document.oncontextmenu = function(event) { if (window.event) { event = window.event; } try { var the = event.srcElement; if (! ((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")) {
部分JS效果2021-10-20 -
<script> //获取当前访问的完整地址 var url = window.location.href; //通过indexOf方法,检索字符串值 if(url.indexOf('域名1') > 0){ //输出内容1
部分JS效果2021-10-19 -
if(location.toString().indexOf("abc.com") <= -1) /*如果当前网址中没有abc.com*/ { document.location.href="/b.htm"; /*跳转到b.htm*/ } else
部分JS效果2020-08-24 -
<script type="text/javascript"> $('.artbody *[style]').each(function(){ if($(this).css('text-align') == 'center') $(this).css('text-indent', '0em'); });
部分JS效果2020-07-30 -
Copyright © <script>var d=new Date();document.write(d.getFullYear());</script> FFan. All rights reserved.
部分JS效果2020-01-15 -
一、PC站所有页面跳转同一手机页面 function is_mobile() { var regex_match = /(nokia|iphone|android|motorola|^mot-|softbank|foma|docomo|kddi|up.browser|up.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|
部分JS效果2020-01-15