Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Website Design/Showcase (http://www.chiefdelphi.com/forums/forumdisplay.php?f=64)
-   -   Team 247 Gallery Help (http://www.chiefdelphi.com/forums/showthread.php?t=76521)

dqmot17 05-04-2009 13:12

Team 247 Gallery Help
 
First, i'd like to get some feedback on this part of the site in general:
www.247dabears.com/gallery

Also, if you look at the commented code, i have it so that you will get a cookie when you click any of the gallery links, and i want it so i can get them to stay open when you come back if the cookie = 09 or 08. Anyone?
Thanks

kitfisto92 02-05-2009 20:52

Re: Team 247 Gallery Help
 
first off, i love the way it is linked when you click on it and how there is a picture with the text. SO creative :)

The way the gallery functions is very cool with the captions to the side.

As far as the code goes...I couldn't figure out how to get to it to see it...

dqmot17 02-05-2009 21:02

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by kitfisto92 (Post 856771)
first off, i love the way it is linked when you click on it and how there is a picture with the text. SO creative :)

The way the gallery functions is very cool with the captions to the side.

As far as the code goes...I couldn't figure out how to get to it to see it...

Thanks!
It uses jquery with cookie addon.
clicked is the name of the cookie, and some of the comments are wrong.
.under is the sub banners of the page.

Code:
Code:

/*if($.cookie('clicked') == "09"){
$("#Traverse").show("slow"); //show traverse banner
      $("#TFF").show("slow"); //show TFF banner
      $("#award").show("slow"); //show TFF banner
         
      }
if($.cookie('clicked') == "08"){
  $("#bowl").show("slow"); //show bowling banner
      $("#oldTFF").show("slow"); //show TFF banner
          $("#canada").show("slow"); //show canada banner
      $("#detriot").show("slow"); //show detriot banner
          $("#end08").show("slow"); //show end of the year banner
      $("#open08").show("slow"); //show open House banner


}
if($.cookie('clicked') != "08" || $.cookie('clicked') != "09"){*/
        $("#Traverse").hide(); //hide the traverse banner
        $("#TFF").hide(); //hide the team ford first banner
        $(".under").hide(); //hide all banner
//}
/*$("#Traverse").click(function(event){
                $.cookie('clicked', '09');
        });
       
        $("#TFF").click(function(event){
                $.cookie('clicked', '09');
        });
       
        $("#award").click(function(event){
                $.cookie('clicked', '09');
        });
       
        $("#bowl").click(function(event){
                $.cookie('clicked', '08');
        });
       
        $("#oldTFF").click(function(event){
                $.cookie('clicked', '08');
        });
       
        $("#canada").click(function(event){
                $.cookie('clicked', '08');
        });
       
        $("#detriot").click(function(event){
                $.cookie('clicked', '08');
        });
       
        $("#end08").click(function(event){
                $.cookie('clicked', '08');
        });
       
        $("#open08").click(function(event){
                $.cookie('clicked', '08');
        });*/


ginosoprano09 02-05-2009 23:56

Re: Team 247 Gallery Help
 
the "battery falling out" picture is epic

kitfisto92 04-05-2009 15:25

Re: Team 247 Gallery Help
 
don't gallery links like this usually auto-cookie?

and the code is so clearly organized; so easy to actually understand :)

my guess is its an error that may be with the layout of the site...?

Try this link to figure out how to accept cookies:
http://www.shopdev.co.uk/blog/cookie...sible-layouts/
^^ it uses jquery like your layout..so i hope it helps you :)

dqmot17 04-05-2009 17:26

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by kitfisto92 (Post 857135)
don't gallery links like this usually auto-cookie?

and the code is so clearly organized; so easy to actually understand :)

my guess is its an error that may be with the layout of the site...?

Try this link to figure out how to accept cookies:
http://www.shopdev.co.uk/blog/cookie...sible-layouts/
^^ it uses jquery like your layout..so i hope it helps you :)

Auto cookie? and thanks for the link, i'll check it out.

kitfisto92 04-05-2009 18:11

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by dqmot17 (Post 857186)
Auto cookie?

yeah like don't browsers auto accept cookies (unless you state not to in "options" tab)? in your case i think its different because you want it to use it to create a certain design feature (from what i understand) and maybe its a certain problem accepting cookies within the individual browser settings?

dqmot17 04-05-2009 19:07

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by kitfisto92 (Post 857201)
yeah like don't browsers auto accept cookies (unless you state not to in "options" tab)? in your case i think its different because you want it to use it to create a certain design feature (from what i understand) and maybe its a certain problem accepting cookies within the individual browser settings?

It makes the cookie fine, it reading doesn't work. the if cookie ='s blah then do blah isn't working.

kitfisto92 04-05-2009 21:00

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by dqmot17 (Post 857225)
It makes the cookie fine, it reading doesn't work. the if cookie ='s blah then do blah isn't working.

did you define what the value of "08" and "09" are on some other part because that can be the problem; it may not understand the definition of the code

dqmot17 06-05-2009 15:22

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by kitfisto92 (Post 857252)
did you define what the value of "08" and "09" are on some other part because that can be the problem; it may not understand the definition of the code

would it matter if they were in quotes? I can't edit it at the moment, but it ocured to me that maybe i wrote string ("") when i meant value (without quotes)

kitfisto92 07-05-2009 15:27

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by dqmot17 (Post 857684)
would it matter if they were in quotes? I can't edit it at the moment, but it ocured to me that maybe i wrote string ("") when i meant value (without quotes)

Most web languages are VERY particular about these things and so that can be the problem. good job noticing the problem :)

dqmot17 10-05-2009 13:10

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by kitfisto92 (Post 857920)
Most web languages are VERY particular about these things and so that can be the problem. good job noticing the problem :)

Well the problem was the 0 in front of the nine/eight, firefox was erroring out saying " Warning: 09 is not a legal ECMA-262 octal constant"
My next question is how to preload the images. i have so they are hidden by CSS, and once the page loads the are hidden by JavaScript not CSS, but it still looks funny. Any ideas on a way to preload it?

kitfisto92 10-05-2009 21:02

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by dqmot17 (Post 858388)
My next question is how to preload the images. i have so they are hidden by CSS, and once the page loads the are hidden by JavaScript not CSS, but it still looks funny. Any ideas on a way to preload it?

I say stick to either JAVA or CSS because it can take more time for the server to register, thus longer loading time.

As far as fixing it goes, try with just CSS and just JAVA and see which is sleeker =)

dqmot17 10-05-2009 21:06

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by kitfisto92 (Post 858453)
I say stick to either JAVA or CSS because it can take more time for the server to register, thus longer loading time.

As far as fixing it goes, try with just CSS and just JAVA and see which is sleeker =)

I hope you mean javascript? because i don't know any java (tried to learn it, looked at some simple scripts and thought That ain't simple and put it down)

And how exactly should i do it though? i've seen others preloading scripts but how (i don't really need code just an idea here) should i do it ?

kitfisto92 11-05-2009 15:13

Re: Team 247 Gallery Help
 
Quote:

Originally Posted by dqmot17 (Post 858454)
I hope you mean javascript?

oops yeah i did. sorry...so used to refering to it as JAVA like the AP class :P

Quote:

Originally Posted by dqmot17 (Post 858454)
And how exactly should i do it though? i've seen others preloading scripts but how (i don't really need code just an idea here) should i do it ?

I recommended coding what you have now into CSS as one idea and then one into javascript as another and see what you like more.

As far as a preloader goes, i recommended using whichever you are more comfortable with. (for me, that's CSS) and research the code to see how other sites do it and formulate how you want it to function


All times are GMT -5. The time now is 16:07.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi