读书人

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

发布时间: 2012-03-09 16:54:58 作者: rapoo

像这样的代码要怎么通过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> 

读书人网 >JavaScript

热点推荐