无论我怎么说,html / javascript链接代码都无法正常工作。 [英] html/javascript link code not working no matter how I put it.

查看:76
本文介绍了无论我怎么说,html / javascript链接代码都无法正常工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开 | 选择 | Wrap | 行号

解决方案

我尝试使用DIV标签,但这并没有改变想法链接。

展开 | 选择 | Wrap | 行号


现在我想起来,我真的需要链接在开始游戏时将自身重置为蓝色/重置游戏按钮被按下。


所以,我真正需要做的是:

点击蓝色链接,链接更改为红色。

点击重置游戏,链接更改回蓝色。


我在改变颜色之前已成功制作了常规的html链接。令人惊讶的是,这里没有任何工作,只是因为一个愚蠢的JS类型链接。


使用onclick来改变颜色,例如

展开 | 选择 | Wrap | 行号< /跨度>

Expand|Select|Wrap|Line Numbers

解决方案

I tried using a DIV tag, but that didn''t change a think with the links.

Expand|Select|Wrap|Line Numbers


Now that I think about it, I really need the link to reset itself to Blue when the "start game/ reset game" button is pushed.

So, what I really need to accomplish is:
click on blue link, link changes to red.
click on "reset game", link changes back to blue.

I''ve successfully made regular html links before that changed colours. It amazing that nothing is working here, only because of a silly JS type link.


Use an onclick to change the colour, e.g.

Expand|Select|Wrap|Line Numbers


这篇关于无论我怎么说,html / javascript链接代码都无法正常工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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