Last active
August 29, 2015 14:17
-
-
Save takanakahiko/bf904889a976642e651d to your computer and use it in GitHub Desktop.
ブログ掲載HTML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script type="text/javascript" src="script.js"></script> | |
<link rel="stylesheet" type="text/css" href="test.css"> | |
<body> | |
<h1>CSSの例</h1> | |
<p> | |
皆さんこんにちは。<a href="http://www.takushoku-u.ac.jp/">拓殖大学</a>のディジタルコンテンツ研究愛好会です。<br> | |
<a href="https://twitter.com/takanakahiko">Nakahiko</a>は<a href="http://www.cs.takushoku-u.ac.jp/">情報工学科</a>に在籍しています。<br> | |
趣味は<a href="http://t.co/og9wtHFqX8">プログラミング</a>と<a href="http://ja.wikipedia.org/wiki/%E9%87%8E%E7%90%83">野球</a>です。<br> | |
</p> | |
<h1>JavaScriptの例</h1> | |
<input type="button" onClick="addNumber()" value="ボタン"> | |
<p id="hoge">1</p> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addNumber(){ | |
var element = document.getElementById("hoge"); | |
element.innerHTML = parseInt(element.innerHTML)+1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a { | |
color:#0F0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment