登陆论坛 申请注册 贪婪规章 帮助中心 贪婪首页
       
在线漫画 在线音乐 资源网 涂鸦墙 动漫博客 社区首页  

  欢迎您到动漫论坛游览  

社区首页 » 动漫论坛 » 综合区 » 动漫博客区

        :::磁力:::  
 
  刷新本主题  后退请用此按钮,提高浏览速度  

主题:请教如何制作下拉菜单及另外一个小问题


楼主,弥赛亚发表于:2007-01-07: 15:02 PM | 会员编号:783322 EXP:82 发贴数:315 财产:13310 戒尼
新手,代码什么的只接触过一点,有些问题请教一下:
1.我想把一些内容做成下拉菜单的
看了论坛有关的帖子,还是没明白,有人能解释一下吗?谢谢

2.怎么在非链接的板块添加链接?比如我把文章标题写进那个板块,点击后就出现原文.谢谢

该贴仅代表弥赛亚的个人观点,弥赛亚文责自负。
引用 | 短信 |  编辑 |  附件

第1楼,flyingkitecissy发表于:2007-01-07: 15:40 PM | 会员编号:21798 EXP:887 发贴数:15396 财产:3136385 戒尼
制作下拉菜单有很多方法,网上都可以搜到代码,有HTML的,有JS的,如果想要JS的可以到网上找,如果想要HTML的可以帮你写写~



·  <a href="http://b.greedland.net/blog.php?sid=&action=view_detail&aid=2431">临兵斗者皆阵列在前 详解</a>
<br>

这个是我blog里面的一段链接的代码,你把  临兵斗者皆阵列在前 详解  换成你自己文章的名字,把  http://b.greedland.net/blog.php?sid=&action=view_detail&aid=2431  换成你要连的那个文章的网址就可以了

该贴仅代表flyingkitecissy的个人观点,flyingkitecissy文责自负。
引用 | 短信 |  编辑 |  附件

第4楼,flyingkitecissy发表于:2007-01-07: 17:07 PM | 会员编号:21798 EXP:887 发贴数:15397 财产:3136435 戒尼
嗯,上面是第二个问题的,第一个问题的话,如果不严格要求下拉菜单,只要下拉式列表的话,代码也是有的:  http://bbs1.greedland.net/topic88_topicId889566_forumId78_sortId0_enterSortId0_forumPage1.html
该贴仅代表flyingkitecissy的个人观点,flyingkitecissy文责自负。
引用 | 短信 |  编辑 |  附件

第10楼,未来与我无缘发表于:2007-01-07: 18:05 PM | 会员编号:793473 EXP:61 发贴数:961 财产:2256 戒尼
以前能用~前天让芒果查了下鼠标跟随代码~~~貌似还没消息
<script language=JavaScript>
/%
Magic Wand cursor II (By Kurt at kurt.grigg@virgin.net)
Modified and permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 150's more DHTML scripts, visit http://dynamicdrive.com
%/

if (document.all){
with (document){
write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')
write('<div style="position:relative;width:1px;height:1px;background:#f6000e;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#aaff00;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#6699CC;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#cc6699;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#99cc66;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#6699CC;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:1px;height:1px;background:#6699CC;font-size:1px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#6699CC;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#6699CC;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#6699CC;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#6699CC;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#6699CC;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:2px;height:2px;background:#6699CC;font-size:2px;visibility:visible"></div>')
write('<div style="position:relative;width:3px;height:3px;background:#6699CC;font-size:3px;visibility:visible"></div>')
write('</div>')
}
}

if (document.layers)
{window.captureEvents(Event.MOUSEMOVE);}
var yBase = 150;
var xBase = 150;
var step = 1;
var currStep = 0;
var Xpos = 1;
var Ypos = 1;

if (document.all)
{
function MoveHandler(){
Xpos = document.body.scrollLeft+event.x;
Ypos = document.body.scrollTop+event.y;
}
document.onmousemove = MoveHandler;
}

else if (document.layers)
{
function xMoveHandler(evnt){
Xpos = evnt.pageX;
Ypos = evnt.pageY;
}
window.onMouseMove = xMoveHandler;
}

function animateLogo() {
if (document.all)
{
yBase = window.document.body.offsetHeight/6;
xBase = window.document.body.offsetWidth/6;
}
else if (document.layers)
{
yBase = window.innerHeight/8;
xBase = window.innerWidth/8;
}

if (document.all)
{
for ( i = 0 ; i < starsDiv.all.length ; i++ )
{
starsDiv.all.style.top = Ypos + yBase*Math.sin((currStep + i*4)/12)*Math.cos(400+currStep/200);
starsDiv.all.style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(currStep/200);
}
}

else if (document.layers)
{
for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
{
var templayer="a"+j
document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(400+currStep/200);
document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(currStep/150);
}
}
currStep+= step;
setTimeout("animateLogo()", 10);
}
animateLogo();
</script>

该贴仅代表未来与我无缘的个人观点,未来与我无缘文责自负。
引用 | 短信 |  编辑 |  附件

第11楼,未来与我无缘发表于:2007-01-07: 18:07 PM | 会员编号:793473 EXP:61 发贴数:962 财产:2306 戒尼
还有个~~书上找的~查了下貌似没错也不行~~~
<script language="JAVASCRIPT">
<!--
if(document.all){
colours=new
  array('ff000','00ff00','3366ff','ff00ff',ffa500','fffff','fff000')
}
amount=colours.length;
YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0.2,step=0.2,currStep=0,my=0,mx=0;
document.wrute('<div id="ie")
style="position:absolute;top:0;left:0;"><div
style="position:relative">');
for(i=0;i < amount;i++)
document.write('<div id="iestars"
style="position:absolute;top:0px;left:0px;width:50px;font-family:courier
family:courier
New;font-size:5px;color:'+colours+';padding-top:20px;text-align:center">.</div>');
document.write('</div></div>');
int=1;
gstep=1;
function iMouse(){
my=event.y;mx=event.x;
}
document.onmousemove=iMouse
function dim(){
ini-=getep;
dt=setTimeout('dim()',10);
if(int>2){
cleartTmeout(dt);
glow();
}
}
function glow(){
ini+=getep;
gt=setTimeout('glow()',10);
if(int>14){
clearTimeout(gt);
dim();
}
}
function stars(){
ie.style.top=document.body.scrollTop;
for(i=0;i < amount;i++)
{
var yerer=iestars.style;  
layer.fillter='glow(color='+colours+',strength='+ini+')';
layer.top=    
ydelay+100*math.sin((5*math.sin(currstep-15.99)/10))+i*70)*math.sin((currstep)/10)*math.cos((currstep+i*25)/10);
layer.left=xdelay+180*math.cos((5*math.sin((currstep-15.99)/10))+i*70)*math.sin((currstep)/10)*math.cos((surrstep+i*25/10);
]
currstep+=step;
}
function delay(){
ydelay=ygetdelay+=(my-ygetdelay)*1/20;
xdelay=xgetdelay+=(mx-xgetdelay)*1/20;
stars();
setTimeout('delay()'10);
}
delay();
glow();
}
//-->
</script>

该贴仅代表未来与我无缘的个人观点,未来与我无缘文责自负。
引用 | 短信 |  编辑 |  附件
社区首页 » 动漫论坛 » 综合区 » 动漫博客区   :::磁力:::


论坛统计 ©2003~2008 Powered By GreedBoard version 2.0.1 beta


贪婪大陆管理、活动总规章 : : 贪婪大陆转载、会员著作权条例