需要脚本来暴露更多文本 [英] need script to expose more text

查看:65
本文介绍了需要脚本来暴露更多文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有没有人知道我在哪里可以获得一个脚本,在

a行文字之后显示一点加号,当你点击加号,更多的文字在

上显示相同的页面,就像一个连续的段落。这将在一个网页上。


谢谢!


--Randy Starkey

解决方案

非常粗糙,但您可以根据需要修改它...


< script type =" text / javascript">

函数展开(elem){

elem.innerHTML ='' - ''

document.getElementById(''more'')。 .display =''block''

}

< / script>


文本开头< a href = "#" onclick =" expand(this)"> +< / a>

< div id =" more" style =" display:none">更多文字< / div>


" Randy Starkey" < RA ***************** @ NOSPAMvictorychurch.com>写在

消息新闻:11 ************* @ corp.supernews.com ...



有人知道我在哪里可以得到一个显示一点加号的脚本
一行文字后,当你点击加号时,在同一页面上显示更多的文字,像一个连续的段落。这将在
网页上。

谢谢!

--Randy Starkey



谢谢!我会玩它。


--Randy

" andrew" <无**** @ noname.com>写在消息

新闻:cKgBe.107730


HI.46216@edtnps84 ...

非常粗糙,但你可以修改如你认为合适......

< script type =" text / javascript">
function expand(elem){
elem.innerHTML ='' - ''
document.getElementById(''more'')。style.display =''block''
}
< / script>

text< a href ="#" onclick =" expand(this)"> +< / a>
< div id =" more" style =" display:none">更多文字< / div>

" Randy Starkey" < RA ***************** @ NOSPAMvictorychurch.com>在
消息新闻中写道:11 ************* @ corp.supernews.com ...



有人知道我在哪里可以得到一个显示一点加号的脚本
一行文字后,当你点击加号时,会在同一页面上显示更多的文字,就像一个连续的段落。这将在
网页上。

谢谢!

--Randy Starkey




Hi,

Does anyone know where I can get a script that show a little plus sign after
a line of text, that when you click the plus sign, more text is revealed on
that same page, like a continuing paragraph. This will be on a web page.

Thanks!

--Randy Starkey

解决方案

Very rough, but you can modify it as you see fit...

<script type="text/javascript">
function expand(elem) {
elem.innerHTML = ''-''
document.getElementById(''more'').style.display = ''block''
}
</script>

Start of text <a href="#" onclick="expand(this)">+</a>
<div id="more" style="display:none">More text</div>

"Randy Starkey" <ra*****************@NOSPAMvictorychurch.com> wrote in
message news:11*************@corp.supernews.com...

Hi,

Does anyone know where I can get a script that show a little plus sign
after a line of text, that when you click the plus sign, more text is
revealed on that same page, like a continuing paragraph. This will be on a
web page.

Thanks!

--Randy Starkey



Thanks! I''ll play with it.

--Randy
"andrew" <no****@noname.com> wrote in message
news:cKgBe.107730


HI.46216@edtnps84...

Very rough, but you can modify it as you see fit...

<script type="text/javascript">
function expand(elem) {
elem.innerHTML = ''-''
document.getElementById(''more'').style.display = ''block''
}
</script>

Start of text <a href="#" onclick="expand(this)">+</a>
<div id="more" style="display:none">More text</div>

"Randy Starkey" <ra*****************@NOSPAMvictorychurch.com> wrote in
message news:11*************@corp.supernews.com...

Hi,

Does anyone know where I can get a script that show a little plus sign
after a line of text, that when you click the plus sign, more text is
revealed on that same page, like a continuing paragraph. This will be on
a web page.

Thanks!

--Randy Starkey




这篇关于需要脚本来暴露更多文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆