Reply
Following a tutorial for a gallery but something isnt working....
Old 11-06-2009, 08:36 PM Following a tutorial for a gallery but something isnt working....
Experienced Talker

Posts: 31
Name: Rachel
Trades: 0
I downloaded Jon designs javascript smooth gallery-which I found a link to while searching for gallery for my website... I have gone over and over what I am doing, but I cant get it to work as a gallery, I have no idea what I am doing wrong and its probably something simple and staring me in the face. I have very limited knowledge....

What I have done:
I unzipped the files and then uploaded them to my Cpanel
In My .css file I added
Code:
#myGallery
{
width: 490px !important;
height: 327px !important;
} 
useThumbGenerator: true 
<script type="text/javascript">
function startGallery() {
var myGallery = new gallery($('myGallery'), {
timed: false,
showArrows: true,
showCarousel: false,
embedLinks: false
});
}
window.addEvent('domready', startGallery);
</script>
The rest I put in my HTML page, I only added two pictures to see how it worked... Its uploaded to my blog part of the site, which I am using for testing... http://rachelclarephotography.com/blog.html So anyone who can explain in simple terms where I am going wrong would be appreciated!!!
__________________
The site that I am building for my self, any tips and tricks appreciated.
Rachelsne is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 11-07-2009, 09:00 AM Re: Following a tutorial for a gallery but something isnt working....
wayfarer07's Avatar
NYE-KEE

Posts: 3,150
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
window.addEvent is not a native JavaScript function. This gallery requires the Mootools library in order to work. You've linked to it, but there isn't actually a script located where you linked. I think you probably assumed that what you downloaded would have everything you need, while the author assumed that you knew about Mootools and where to get it: http://mootools.net/
__________________
Wayfarer | jQuery Tooltip Plugin | Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 11-07-2009, 02:20 PM Re: Following a tutorial for a gallery but something isnt working....
Experienced Talker

Posts: 31
Name: Rachel
Trades: 0
I downloaded MooTools 1.2.4
I put it in the public_html folder in Cpanel but nothings changed, am I still missing a step?

IS this the link you were talking about?
}
window.addEvent('domready', startGallery);
</script>
Do I nreed to change the name of the link? I called the mootools download mootools-1.2.4-core-nc.js is this the correct thing to do?

Thanks for your help so far.
__________________
The site that I am building for my self, any tips and tricks appreciated.

Last edited by Rachelsne; 11-07-2009 at 02:37 PM..
Rachelsne is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 02:57 PM Re: Following a tutorial for a gallery but something isnt working....
wayfarer07's Avatar
NYE-KEE

Posts: 3,150
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
By "link" I meant the script tag at the top:
HTML Code:
<script src="scripts/mootools.v1.11.js" type="text/javascript"></script>
The src attribute needs to be pointed at the correct location. If it is in the same folder as the other file, and the name of the file you uploaded is mootools-1.2.4-core-nc.js, all you need to do is edit the above to say:
HTML Code:
<script src="scripts/mootools-1.2.4-core-nc.js" type="text/javascript"></script>
__________________
Wayfarer | jQuery Tooltip Plugin | Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola

Last edited by wayfarer07; 11-07-2009 at 02:59 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 11-07-2009, 03:46 PM Re: Following a tutorial for a gallery but something isnt working....
Experienced Talker

Posts: 31
Name: Rachel
Trades: 0
Ok thanks, another silly question,,,,(becuase its not working)

When you have a script tag, or anyother tag, is the part that says scripts/mootools referring to the file I uploaded and the place I uploaded too, so in this case mootools is the file and scripts is the folder its in?

<script src="scripts/mootools-1.2.4-core-nc.js"
__________________
The site that I am building for my self, any tips and tricks appreciated.
Rachelsne is offline
Reply With Quote
View Public Profile
 
Old 11-07-2009, 04:13 PM Re: Following a tutorial for a gallery but something isnt working....
Brian07002's Avatar
Defies a Status

Posts: 1,585
Name: ...
Location: ...
Trades: 0
you should *always* test your scripts locally (even client side such as javascripts) before uploading them to a live server. That will guarantee they will work the first time when going live with them.
__________________
Sig Less - Have some site you want me to put here? Will put here for a couple of paypal bucks.
Brian07002 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Following a tutorial for a gallery but something isnt working....
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12564 seconds with 13 queries