Wednesday, July 23, 2008

New coding added

Ya Ha! before i post my random post of the week tomorrow, here's a little new thingy i took the liberty of adding on our class blog.

now, i have reconfigured some java script, and everything seems to work fine, but anyone who spots and problems, please complain to your mom. no just kidding. tell me. i have the old template saved on my com incase anything goes wrong. but one i restore the old template, we have no more of this new stuffs.

changes made:
-added extra 3 lines of code in the javascript portion of the template
-added extra 2 lines of code in the CSS style area
-updated yuya's blog hyperlink(the only change that i didnt test, so tell me if there's an error.)

now, here's the new addition to our coding:


clicky



isnt it cool?


ok, so people who post on this blog might get a little confused whenever you create new posts. as a default, there will be these codes everytime you want to post a new post in the edit html area of your posts

< a aiotitle="click to expand" href="javascript:togglecomments('spoiler')" >

clicky< /a >

< div class="commenthidden" id="spoiler" >
INSERT HIDDEN TEXT HERE
< /div >

except without the extra spaces. if you want to use the new code, you can insert your "hidden text" at where it says "insert hidden text here" (DUH~)

to use more than one spoiler, just copy 'n' paste the code below. HOWEVER, (i think) you have to change the id="spoiler" part to some other name like id="spoiler2" for example, also, after the words togglecomments('spoiler'), you have to change the name to exactly the same one used above.

so to simplify things, the text you want to change is bolded while the name of the element you have to change is in italiacs so you know what im talking about.

oh, and one more thing, the preview will NOT show you the spoiler as it is. it will show the so called "hidden text", and the link wont work, remember, ONLY in preview

Posted by:Photobucket

No comments: