Simple Machine Codes
November 26, 2021, 10:42:43 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Jquery and SMF For Free #1(Introduction)

Pages: [1] 2   Go Down
  Print  
Author Topic: Jquery and SMF For Free #1(Introduction)  (Read 3929 times)
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: May 28, 2007, 08:46:15 pm »

If you are brand new to Jquery, you can start here. Grin  All the "Jquery and SMF For Free" Tutorials are just for you to learn Jquery for SMF For Free.  So lets get started.

A diffrence between Jquery and Javascript
There are some diffrences between Jquery and Javascript.  Jquery is just a simpler way to do Javascript, and it also involves less code writing, which is very helpfull.  Jquery is ment to move, hide, change and other things like that to an object such as text.
Javascript is to do things like put an default avatar is someone doesn't have one, yes you can do that with Jquery, it is just harder to do.


Setting up Jquery
Well, since this is SMF For Free, you will need to always have this in your Headers since SMF For Free isn't set up to use it...
Code:
<script src="jquery.js"></script>
You will only need it if you don't have it in your Headers already.

Now, you need to put script tags, which tells the code where it starts and ends.
Code:
<script>

</script>
Now that you have the script tags, you will need the next item that every since Jquery script uses...
Code:
<script>
$("")
</script>

ID's, class and tags
In between the quotation marks, will be the ID, class or just the tags of an object.  There are diffrent ways you will do ID and class though...
When you want to use an ID you will need to use the number sign (#).  If you want to use a class, you will use a period (.).  The tags of an obect would be td, tr, table, b, a, i, span and much more, just simple things like that.

So, here is an example of an ID
Code:
<script>
$("#INSERT_ID")
</script>
And here is an example of a class
Code:
<script>
$(".INSERT_CLASS")
</script>
Here is an example of a tag.
Code:
<script>
$("table")
</script>

Useing tags and classes together
In some cases, you will need to do something where you need to put the tag and the class so that you know your getting the right thing...
Code:
<script>
$("table.class")
</script>
As you can see, the tags class is called "class".


That is it for the first lesson of many for Jquery and SMF For Free.  Hope this helped you out, if you have any questions, just post it here.
« Last Edit: February 26, 2008, 07:52:14 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter

deathwilldie
100 Club Member

Offline Offline

Posts: 214


View Profile WWW
« Reply #1 on: May 28, 2007, 09:48:56 pm »

This is a very good tutorial.  Thanks for posting it.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: May 28, 2007, 09:50:27 pm »

No problem.  It was easy to do.  Does you get everything in the tutorial?
Report Spam   Logged

deathwilldie
100 Club Member

Offline Offline

Posts: 214


View Profile WWW
« Reply #3 on: May 31, 2007, 12:56:10 am »

yes I Does get every thing in the tutorial.
Report Spam   Logged

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #4 on: May 31, 2007, 02:15:25 am »

wow...ummm...that is basicly all I can explain it though.
Report Spam   Logged

xscg
Starter

Offline Offline

Posts: 11



View Profile
« Reply #5 on: August 09, 2007, 08:36:15 am »

This is a great tutorial!

Its still abit confusing, but I should be able to understand it.
Report Spam   Logged
Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: 1,337


aka Omikron


View Profile WWW
« Reply #6 on: August 09, 2007, 08:50:56 am »

And if you have any questions, feel free to ask.
Report Spam   Logged

ModKilla
Newcomers!

Offline Offline

Posts: 2


View Profile
« Reply #7 on: September 29, 2007, 08:22:18 am »

Where Is The Headers?
Report Spam   Logged
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #8 on: September 29, 2007, 05:00:56 pm »

Admin>Manage Styles>Headers and Footers.
Report Spam   Logged

camobeast23
100 Club Member

Offline Offline

Posts: 167



View Profile
« Reply #9 on: February 09, 2008, 10:55:25 pm »

How can you tell if it is a class, tag, or an ID?
Report Spam   Logged
Celebrus
Artificially Conscious
Administrator

Offline Offline

Gender: Male
Posts: 1,337


aka Omikron


View Profile WWW
« Reply #10 on: February 09, 2008, 11:39:20 pm »

This might explain that.
Report Spam   Logged

yurmomshot3
Members

Offline Offline

Posts: 42


View Profile
« Reply #11 on: May 19, 2008, 05:40:50 pm »

Do you just make codes up?
Report Spam   Logged
Musicinsanity
Music Is Life.
100 Club Member

Offline Offline

Gender: Male
Posts: 209


www.Musicinsanity.tk - NEED HELP


View Profile WWW
« Reply #12 on: May 19, 2008, 06:06:20 pm »

No you have to learn how to make them
Report Spam   Logged

I do need advertisers and staff @ WWW.MUSICINSANITY.TK

yurmomshot3
Members

Offline Offline

Posts: 42


View Profile
« Reply #13 on: May 19, 2008, 06:16:24 pm »

Post a code for me please?
Report Spam   Logged
legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #14 on: May 20, 2008, 02:58:30 am »

a code ?

this whole forum is made of codes

look through the different boards or search in the index for any code you would like that has been made

legend 1234
Report Spam   Logged

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy