adding script into specific element
hi, i want to know how do i merge different script into one that i can upload into file and put it in <head> section
so i want to add this scriot into <div id = 'title-post'>
- //< div id = 'title-post' >
- var timestamp = "<data:post.dateHeader/>";
- if (timestamp != "") {
- var timesplit = timestamp.split(",");
- var date_dayname = timesplit[0];
- var date_daymonyear = timesplit[1]
- }
this into < div class = 'n-ofday' >
- //< div class = 'n-ofday' >
- document.write(date_dayname);
for < div class = 'n-ofmonth' >
- //< div class = 'n-ofmonth' >
- document.write(date_daymonyear);
for < div class = 's-header' >
- //< div class = 's-header' >
- document.write(sompret_image_creator("
- <data:post.thumbnailUrl/>", "<data:post.title/>"));
-
- //</div></div></div></div> end tag from title-post
i mean, i want to add those script into one file and place it into header.
thanks