首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

像这样的代码要如何通过PHP来实现

2012-03-09 
像这样的代码要怎么通过PHP来实现?页面中这个。http://naojin.911cha.com/Ynp5.htm点击查看答案。就会在这里

像这样的代码要怎么通过PHP来实现?
页面中这个。http://naojin.911cha.com/Ynp5.htm

点击查看答案。就会在这里显示答案。
这个要怎么弄显示。
我看了一下他的网站代码。好像最开始是隐藏的,当点击了超链接。就会通过JS显示出来

JS这快不知道怎么写。请高手帮我写个。

[解决办法]

HTML code
<html>    <head>        <title>For test</title>    </head>    <body>    <p id = 'test' style="display:none" >Test</p></br>    <a href="javascript:void(0)" onclick="javascript:document.getElementById('test').style.display = ''">Display</a></body></html> 

热点排行