- This topic is empty.
-
AuthorPosts
-
May 26, 2013 at 11:51 am #45009
overtongraphics
MemberHi All,
I am new to coding and coding my first ever website
see here: [My personal site](http://www.overtongraphics.com/overtongraphics/overtongraphics.html “”)
I was getting my links growing and changing colour into what i had defined (on page load) – i think because i have css transitions on the default css for those classes, intended to make the links smooth back to that after hover off.
So i followed Chris’s tutorial here (thinking its related)
[transitions only after page load](https://css-tricks.com/transitions-only-after-page-load/ “”)I copied everything, but maybe i’m not linking to my javascript correctly – never linked to jscript before. (because now all my transitions are permanently disabled)
this is the code in my head.
_
Josh Example
language=”javascript” src=”javascript.js”> _and this is ALL the code i have in my javascript file
_$(“window”).load(function() {
$(“body”).removeClass(“preload”);
});_on chrome inspector it says an error by my javascript
_Uncaught ReferenceError: $ is not defined_
So i guess I don’t know how to set up a jscript file basically
Any help would be hugely appreciated for this budding coder!
Thanks
Josh
May 26, 2013 at 11:54 am #136536overtongraphics
Memberhead code again
Josh Example
language=”javascript” src=”javascript.js”>May 26, 2013 at 11:55 am #136537overtongraphics
Member
Josh Example
language=”javascript” src=”javascript.js”>May 26, 2013 at 11:55 am #136538overtongraphics
MemberSorry – ddint know how to copy it to the post
May 26, 2013 at 12:12 pm #136540overtongraphics
MemberI made a codepen if easier – sorry new to these forums posting – but been reading for a while
May 26, 2013 at 12:23 pm #136541Paulie_D
MemberOff hand it looks like you aren’t referencing/loading jQuery first before your script.
https://css-tricks.com/video-screencasts/20-introduction-to-jquery/
May 26, 2013 at 12:44 pm #136545overtongraphics
MemberThanks @Paulie_D
I’ve tried following the video and adding allt hat – can you please look at my site again because its still not owrking
Thanks
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.