我刚刚开始学习联合材料,并且(当然)有一些困难。 我通常会很快地抓住事情,但我可以 life忙找到解决办法。 下面请见understand,原因何在。
我的目标是使用3个迅速的箱子,所有箱子都相互交织,以印刷一部《html》的法典,这将是一部简单的《URL》。 我对此再说一遍,但我要首先谈谈。
目前,我正在迅速采取行动,但在我把数据输入第三箱并提交之后,没有发生。
我在这里做了什么错误? 如果与我的文件发生错误。 书写法,我应当研究什么?
感谢!
function show_prompt()
{
var site_type = prompt("What kind of link is this?");
var site_url = prompt("What is the URL?");
var site_title = prompt("Give the link a title");
if (site_type = website) {
document.write("<a style="color: #777777" href="http://site_url" title="site_title">site_title</a>");
}
else
if (site_type = video) {
document.write("<a style="color:#98B2C3" href="http://site_url" title="site_title">site_title</a>");
}
else
if (site_type = image) {
document.write("<a style="color:#8D5359" href="http://site_url" title="site_title">site_title</a>");
}
else
(site_type = article); {
document.write("<a style="color:#768D53" href="http://site_url" title="site_title">site_title</a>");
}
}