-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeowscript.js
More file actions
38 lines (34 loc) · 1.16 KB
/
meowscript.js
File metadata and controls
38 lines (34 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function makeaPost() {
var mybuttons = document.get.Type("Submit");
mybutton.Onclick =createNewDiv(){
var d = document.createElement('div'); //how do I do this???
d.classname = "meowWrapper";
var i = document.createElement('img')
i.classname = "avatar";
i.src = "gft/cat1.jpg";
var s1 = document.createElement('span')
s1.classname = "name"
var s2 = document.createElement('span')
s2.classname ="time"
var p = document.createElement('p')
var text = document.get.ElementbyClass("meowText").value;
var body = docmuent.get.ElementbyClass("panel left");
document.body.appendChild (d);
document.d.appendchild(i);
document.d.appendchild(s1);
document.d.appendchild(s2);
document.d.appendchild(p);
document.p.innerHTML = "text"
document s1.innerHTMl = "KeKe"
document.s2.innerHTMl = "Now"
document.d.innerHTML = "kekethecat"
}
}
Window.Onload=function(){makeaPost();}
//sample coding
//<div class="meowWrapper">
//<img class="avatar" src="gfx/cat2.jpg">
//<span class="name">B-ray</span> @bchan <span class="time">15m</span>
//<p>
//Scratch paw, lick, explore, sleep
//</p>