Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Browse > Home / / Another ways to upload javascript


Another ways to upload javascript

3 comments
Thursday, June 25, 2009 Posted by One-4-All

JavaScript is a scripting language used to enable programmatic access to objects within other applications. It is primarily used in the form of client-side JavaScript for the development of dynamic websites. JavaScript is a dialect of the ECMAScript standard and is characterized as a dynamic, weakly typed, prototype-based language with first-class functions (ref. wikipedia). Javascript can make our blog have a good look and more attractive. I used it in another blog (tipsandcara). To use javascript, we must upload it to web. I have been using a free webhosting, like ripway or hotlinkfiles. But, someday my blog have a bad conditions. My javascript doesn't work. Why it's can be happened? and the answer is my javascript files was deleted, have reach bandwith, or something else. It's a risks if we use a free hosting. But we can upload the script into our template (blogger template) with use a little trick.
When you want insert javascript code into blogger template use this style.

<script type='text/javascript'>
//<![CDATA[
Javascript code
//]]>
</script>



And then put that code between this code ]]></b:skin> and </head>

Like this one.
]]></b:skin>
<script type='text/javascript'>
//<![CDATA[
Javascript code
//]]>
</head>


Hopefully that way can solve our problem.

Best Regard
One-4-All

Read More

Browse > Home / / Auto Hide Comment


Auto Hide Comment

14 comments
Friday, June 12, 2009 Posted by One-4-All

Comment
Comment are one of feature in blog area. I think, there are one of important things. People leave critics, suggest, appreciate, or maybe in some questions use this feature. There are some blogs with have a lot of comment for their article. And if we want to leave comment in that blog which have a lot of comment, we must scroll down our mouse to find comment form. It’s will make some visitor uncomfortable. But, I think that problem can be solve. We can hide that comment. But not for permanently . It can be show again with click. I call it, “AUTO HIDE COMMENT” trick. If we used this trick, our comment area will be shown like this one.

Comment

If we click it, the comment wil be appear.


Comment

For applied this trick, we must edit your HTML code in several steps. But don’t worry, it’s easy step. Go to your template and then cek check “Expand Widget Templates” option, and then do this steps.

1. Add this code before ]]></b:skin>
.commenthidden {display:none}
.commentshown {display:inline}

2. Look up for this code <dl id='comments-block'>. And then add this code before it,


Scroll down your mouse and find until you find </b:loop>, it’s usually before this code “<b:if cond="data:post.commentPagingRequired"> “.
And then paste again this “ <a aiotitle='Hide Comments' href='javascript:togglecomments(&quot;hideshow&quot;)'>[+/-]Click to Show or Hide Old Comments</a> “ after </b:loop>.

3. The last step is add some script to your template.




You must add before </head>.

4.Save your template. And then see for the result.
You can change “ [+/-]Click to Show or Hide Old Comments “ with you want.

Now you have applied this trick.
Enjoy it’s, and don’t forget to bookmark it’s if you like this article.

Best regard.
One-4-All

Read More

Browse > Home / / Vertical Navigation Bar


Vertical Navigation Bar

1 comments
Monday, May 25, 2009 Posted by One-4-All

compass
Navigation bar or most often people said it Navbar is one of tools that is use to explore something. I use it to help a visitor to explore my blog. Almost template use it in horizontal style like this.

horizontal navigation bar

But i was used two type in my another blog.... tipsandcara, horizontal type and vertical type. My navigation bar in vertical type have appearance like this one:



When my visitor want to explore my blog, just click and list of my blog will appear.... like this one:


To use that style, there is a couple things to do.
1. click this link to download package that contain the script and image that used in this trick.

Upload all of in contain to your favorite web hosting (ripway, photobucket, hotlinkfiles, or something else). Write the URL, it will be use in next step.

2.Copy and paste this code to your template before </head>. Before you insert the code, you must change "your Script URL" with yours.




3.Copy and paste this code after ]]></b:skin> and before </head>.




there are several word that you must change. There is plus.gif, minus.gif, glossyback.gif, glossyback2.gif with yours URL of that image.

4.Go to layout template in blogger account, click "Page Element" and then click add a gadget. Click "HTML/Javascript" option. Inside that option, add this code.




Change that code with your own links. Save your template and see the result.

Enjoy it.
One-4-All

Read More