学习通交html作业怎么交

html-css018

学习通交html作业怎么交,第1张

1、首先打开学习通,点击右下角的我。

2、其次进入个人页面,点击课程。

3、最后进入课程页面,点击进入需要交作业的课程。学习通是由北京世纪超星信息技术发展有限责任公司于2016年开发的一款集移动教学、移动学习、移动阅读、移动社交为一体的免费应用程序,仅支移动端。

window.onload = function () {

    //读取cookie,并赋值

    document.getElementById("txtContent").value = getCookie("txtContent")

    //每十秒将内容存至cookie

    setInterval(setToCookie, 10000)

}

//根据名称取cookie的值

function getCookie(name) {

    var strCookie = document.cookie

    var arrCookie = strCookie.split(" ")

    for (var i = 0 i < arrCookie.length i++) {

        var arr = arrCookie[i].split("=")

        if (arr[0] == name) {

            return unescape(arr[1])

        }

    }

    return ""

}

//将内容存至cookie

function setToCookie() {

    document.cookie = "txtContent=" + escape(document.getElementById("txtContent").value)

}

//显示文本

function showTxt() {

    document.getElementById("showDiv").innerHTML = document.getElementById("txtContent").value

    document.getElementById("txtContent").value = "" //清空

    deleteCookie("txtContent")

}

//删除cookie

function deleteCookie(name) {

    var date = new Date()

    //设定到期时间,小于当前时间,即失效,即是删除

    date.setTime(date.getTime() - 10000)

    document.cookie = name + "=v expires=" + date.toGMTString()

} <textarea id="txtContent" rows="10" cols="50"></textarea>

<br/>

<input type="button" onclick="showTxt()" value="显示"/>

<div id="showDiv"></div>

PS:

  需要部署在IIS上,才能正常写入,直接存在HTML,并打开不会生效

  因为没有设定cookie失效时间,默认为关闭浏览器即失效

  所以读取效果,只在页面刷新时体现

您好,这样的:

前提:随便你在电脑里那个盘里新建文件夹,命名为:love,然后在这个文件夹里,分别建六个html文件,命名的话就像下面(如果真的不会,就在文件夹里新建六个txt记事本,建好之后分别重命名为以下的名称。)。

首先,主页为:index.html,另外五个网页为:index1.html,index2.html,index3.html,index4.html,index5.html。

网页1代码:文件名:index1.html

<html>

<head></head>

<body>

<p>i love you!</p>

</body>

</html>

网页2代码:文件名:index2.html

<html>

<head></head>

<body>

<p>i hate you!</p>

</body>

</html>

网页3代码:文件名:index3.html

<html>

<head></head>

<body>

<p>i miss you!</p>

</body>

</html>

网页4代码:文件名:index4.html

<html>

<head></head>

<body>

<p>i miss you too!</p>

</body>

</html>

网页5代码:文件名:index5.html

<html>

<head></head>

<body>

<p>i love you too!</p>

</body>

</html>

最终要的是主页代码:index.html,代码如下

<html>

<head></head>

<body>

<img src="XXX.JPG"/>

<a href="index1.html">网页1</a>

<a href="index2.html">网页2</a>

<a href="index3.html">网页3</a>

<a href="index4.html">网页4</a>

<a href="index5.html">网页5</a>

</body>

</html>