网易编辑器用法演示特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 网易编辑器用法演示特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

网易编辑器用法演示特效代码

HTML代码(index.html):

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="JS代码,其他代码,JS广告代码,JS特效代码" />
<meta name="description" content="此代码内容为网易编辑器用法演示,属于站长常用代码" />
<title>网易编辑器用法演示</title>
<style type="text/css">
body{font-size:12px;color:#333333;}
</style>
</head>
<body>
<form name="form1" method="post" action=""> 
<input type="hidden" name="content" id="content" value="<div>&nbsp;这是隐藏表单的内容</div>">
<iframe src="HtmlEditor/editor.html?id=content" frameborder="0" scrolling="no" width="700" height="320"></iframe>
<br><br>
<input type="button" value="查看隐藏表单的内容" onClick="alert(content.value);">
</form>
</body>
</html>

JS代码(colorSelect.js):

// Draw color selector// create 6-element arrayvar s = "";
	var hex = new Array(6)// assign non-dithered descriptorshex[0] = "FF"hex[1] = "CC"hex[2] = "99"hex[3] = "66"hex[4] = "33"hex[5] = "00"// draw a single table cell based on all descriptorsfunction drawCell(red,green,blue){
	// open cell with specified hexadecimal triplet background colorvar color = '#' + red + green + blue;
	if(color == "#000066") color = "#000000";
	s += '<TD BGCOLOR="' + color + '" style="height:12px;
	width:12px;
	" >';
	// print transparent image (use any height and width)s += '<IMG '+ ((document.all)?"":"src='../images/place.gif'") +' HEIGHT=12 WIDTH=12>';
	// close table cells += '</TD>';
}
// draw table row based on red and blue descriptorsfunction drawRow(red,blue){
	// open table rows += '<TR>';
	// loop through all non-dithered color descripters as green hexfor (var i = 0;
	i < 6;
	++i){
	drawCell(red,hex[i],blue)}
// close current table rows += '</TR>';
}
// draw table for one of six color cube panelsfunction drawTable(blue){
	// open table (one of six cube panels)s += '<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>';
	// loop through all non-dithered color descripters as red hexfor (var i = 0;
	i < 6;
	++i){
	drawRow(hex[i],blue)}
// close current tables += '</TABLE>';
}
// draw all cube panels inside table cellsfunction drawCube(){
	// open tables += '<TABLE CELLPADDING=0 CELLSPACING=0 style="border:1px #888888 solid"><TR>';
	// loop through all non-dithered color descripters as blue hexfor (var i = 0;
	i < 2;
	++i){
	// open table cell with white background colors += '<TD BGCOLOR="#FFFFFF">';
	// call function to create cube panel with hex[i] blue hexdrawTable(hex[i])// close current table cells += '</TD>';
}
s += '</TR><TR>';
	for (var i = 2;
	i < 4;
	++i){
	// open table cell with white background colors += '<TD BGCOLOR="#FFFFFF">';
	// call function to create cube panel with hex[i] blue hexdrawTable(hex[i])// close current table cells += '</TD>';
}
// close table row and tables += '</TR></TABLE>';
	return s;
}

JS代码(samedomain.js):

function ResetDomain(){
	var ss=document.domain;
	//ss == "www.126.com";
	var ii=ss.lastIndexOf('.');
	if(ii>0){
	if(!isNaN(ss.substr(ii+1)*1))return;
	ii=ss.lastIndexOf('.',ii-1);
	if(ii>0)document.domain=ss.substr(ii+1);
}
//document.domain == "126.com";
}
ResetDomain();
	
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
17.15 KB
Html JS 其它特效3
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章