Skip to main content

Javascript: What is it and where does it go?

For pretty much my whole blogging journey I've been working on coding designs for my sites. CSS was my favorite and HTML is bearable, but Javascript... Oh, the dreaded Javascript...

I could never get Javascript down. I couldn't write my own codes or even make the ones I got off the web work. And I never understood why. So I've created this post today to help those of you who may be struggling as well.


What is it?

Javascipt is the most popular programming language. Like, ever. It can change HTML content, attributes, CSS styles, and much, much more. It makes web pages interactive and can be used in non-web based environments, such as PDFs and desktop widgets. [1]

If you'd like to learn more about Javascript, like who created it and the many things it can do, head on over here. :)

The standard Javascript code:

<script type='text/javascript'>
//<![CDATA[
Your JavaScript coding here
//]]>
</script>
The code above is very important when it comes to adding your Javascript into your Blogger template. If you just slap your code into your template without using the script above, it won't be read properly and could do some terrifying things to your blog. So be careful when implementing Javascript and always make sure you have this code surrounding your hard work.

How to implement it:

Add your code before the </head> tag

How to get there

  1. Choose the blog you'd like to add your Javascript to.
  2. Choose Template then click "Edit HTML".
  3. Paste your code above the </head> tag (if you can't find it, use Ctrl + F).

Add it into a HTML/Javascript gadget

Take your code, head on down to layout, and paste into the gadget. Make sure to save your changes!

As you can see, these steps are actually very simple, and don't require much effort at all. If you have any comments, questions or concerns, feel free to contact me. I love hearing from you guys. :)

xx Nicole Rose

Comments

Popular posts from this blog

May I ask for your [honest] opinion?

via Alrighty. I recently just completed my one hundredth blog design order [insert celebratory balloons, glitter cannons, and thrown pies here]. ;} And I was talking to my mother about this in the car, to and from the store. Basically, what she said was; "You've been doing your designs for a long time, right? So why don't you start charging for your services?" This got me thinking, and in my eyes, I feel as though charging for my designs would probably make me feel like I'm getting cocky, and too proud of my work, yah know? But I wanted to ask you guys, my honest readers; do YOU think my services are worth spending money on? Like seriously. If you wanted a new design would you choose me, even if it cost you ten dollars? I know most of it is just a matter of opinion. Every designer has their own way of doing things. Their own unique style. It all depends on what the "order-er" wants. I'd like to know if I have the capabilities of giving s...

Wake Up, Darling.

Wake up darling, it's time to rise. Sit up, stretch your limbs, and put a smile on that tired face. Tomorrow is gone, and it's a new day. Wake up darling, open the blinds. Open the window if you have to, and stick your head out. Smell the air. Breathe. Let the morning sun hit your cheeks. Ahh. A fresh start. Are you awake, darling? Get dressed now. Put on your worn sweater, and jeans, or favorite graphic tee. Decided whether or not it's worth it to find the matching pair to your sock, and if you'd like attempt to untangle that mass of hair on your head. Whatever you'd like. Now darling. Are you ready? Because it's adventure time . + + + Thank you for reading. <3

Justin -- Fictional Character

Justin. Sarcastic. Opinionated. Hot. <-- Yep, I said it. •-• * * * Hello my lovely readers. Today I'd like to introduce you to my fave boy character whom I invented. His name is Justin. He's the main character in my first completed book, The Memory Keeper (read a sneak peek here ). I wanted to share Justin with you because, well, I did this a while back with Zarek , and I received so nice comments about him. :) So I thought what the hey, I may as well share another character with them . :} So, yes. This is Justin.  He's rough and sarcastic on the outside.  But his insides are like melted chocolate-- sweet, gooey, and totally amazing. O.o Here's a little Justin snippet. I hope you guys enjoy it. >.< * * * M uffled voices ring around my ears, gradually waking me up from my sleep. Someone laughs when I groan and I roll over, shying away from all the noise. When I get the courage, I open my eyes, surprised by how dark it is. The walls...