我如何点击一个笑话并出现一个新的笑话? [英] How can I click on a joke and have a new joke appear?

查看:85
本文介绍了我如何点击一个笑话并出现一个新的笑话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何显示随机笑话或谚语。但是,只有当我重新加载

页面时,脚本才会选择一个新的说法。我怎样才能点击

说并在其上加载一个新的。

I know how to display random jokes or sayings. But only if I reload
the page does the script select a new saying. How can I click on the
saying and have it load a new one in its place.

推荐答案

在文章< ; 70 ************************** @ posting.google.com> ;, mdh_2972

@ hotmail.com说...
In article <70**************************@posting.google.com >, mdh_2972
@hotmail.com says...
我知道如何显示随机笑话或谚语。但是,只有当我重新加载页面时,脚本才会选择一个新的说法。我如何点击
说并在其位置加载一个新的。
I know how to display random jokes or sayings. But only if I reload
the page does the script select a new saying. How can I click on the
saying and have it load a new one in its place.




< a href =" page.htm"> ; blah blah blah< / a>


-

Hywel我不吃乳蛋饼
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php


Michael写道22 sep 2003 in comp.lang.javascript
Michael wrote on 22 sep 2003 in comp.lang.javascript:
我知道如何显示随机笑话或谚语。但是,只有当我重新加载页面时,脚本才会选择一个新的说法。我如何点击
说并在其位置加载一个新的。
I know how to display random jokes or sayings. But only if I reload
the page does the script select a new saying. How can I click on the
saying and have it load a new one in its place.




< script>

j = new Array

j [0] =" haha​​"

j [1] =" next joke"

j [2] ="再次

// ....

j [20] =最后一个笑话

< / script>


< div onclick =" this.innerHTML = j [Math.floor(Math.random()* 21)]">

点击此处查看笑话

< / div>


-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数)



<script>
j=new Array
j[0]="haha"
j[1]="next joke"
j[2]="again"
//....
j[20]="last joke"
</script>

<div onclick="this.innerHTML=j[Math.floor(Math.random()*21)]">
Click here for jokes
</div>

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


Michael说:

我知道如何显示随机笑话或谚语。但是,只有当我重新加载页面时,脚本才会选择一个新的说法。我如何点击
说并在其位置加载一个新的。

I know how to display random jokes or sayings. But only if I reload
the page does the script select a new saying. How can I click on the
saying and have it load a new one in its place.




有许多不同的可能方式来显示随机笑话或说法。


我们需要知道你是怎么做的,告诉你如何最好地改变它,以便当你点击它时它会发生变化。



There are many different possibly ways to display random jokes or sayings.

We would need to know how you''re doing it to tell you how best to
change it so that it changes when you click on it.


这篇关于我如何点击一个笑话并出现一个新的笑话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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