Your welcome ... anytime ;) ----- Original Message ----- From: "cogent99" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com> Sent: Tuesday, November 11, 2008 9:04 AM Subject: [Proto-Scripty] Re: Need help with Effect.Appear
Thanks much for the great advice Alex. On 11 Nob, 01:08, "Alex Mcauley" <[EMAIL PROTECTED]> wrote: > That one uses the hidden divs and is really not a good idea for a few of > reasons .. > > Firstly:- speed of page loading ... if all of your content > is on the first page it will tak a long time to load all of it > Secondly:- if the user has javascript disabled in the site then > the whole site becomes unaccessible due to nothing being able to "unhide" > the hidden content on the page. > Thirdly: this may be the most important if you want good SEO > .. googlebot and other spiders will see the hidden content as spam and you > will get sandboxed from their search results when they crawl your page > > What i would do is somehting like this ... > > Setup the menu on the right with <a href="blah">Contact</a> > have prototype listen to the said anchors and execute an Ajax Request > pulling in the relevant data from the url of the anchor or whatever. > Build each page to be accessible via an ajax request and as a clickable > link - this way if javascript is diabled then the browser follows the URL > path, if its enabled it simply does the ajax request ... ocne you have the > data you can do whatever effects you want on it to bring it into focus .. > > I believe this to be the best method for you as no-1 wants a sandboxed > site > !! > > ----- Original Message ----- > From: "cogent99" <[EMAIL PROTECTED]> > To: "Prototype & script.aculo.us" > <prototype-scriptaculous@googlegroups.com> > Sent: Monday, November 10, 2008 4:39 PM > Subject: [Proto-Scripty] Re: Need help with Effect.Appear > > Ack. Here's the URL: http://www.bluedegenes.com/ > > On 11 Nob, 00:38, cogent99 <[EMAIL PROTECTED]> wrote: > > Hi Alex! I'm sorry if I wasn't able to explain myself clearer, but > > here's a website that has an idea of what I'm looking for. Click on > > its navigation links and see the content on its left slide and > > change. In my case though, instead of sliding, I want mine to fade in > > and out. > > > On 10 Nob, 22:07, "Alex Mcauley" <[EMAIL PROTECTED]> > > wrote: > > > > You may be better off loading the content with Ajax requests rather > > > than > > > all > > > the content being in hidden elements in the page > > > > ----- Original Message ----- > > > From: "cogent99" <[EMAIL PROTECTED]> > > > To: "Prototype & script.aculo.us" > > > <prototype-scriptaculous@googlegroups.com> > > > Sent: Monday, November 10, 2008 1:50 PM > > > Subject: [Proto-Scripty] Re: Need help with Effect.Appear > > > > Thank you Alex! I'll read up on your suggestion and get more > > > familiarized with it. I've got another one if you don't mind, which > > > I've posted on a different forum: > > > > Here's what I've been meaning to come up with: > > > > One page. One navigation bar. Multiple links in navigation bar, say > > > four -- Home, Content, About, Contact -- with home as initial display > > > on load. > > > > ALL of the contents is in a div in the middle. > > > > When I click on CONTENT, a page with the "content" fades in (or slides > > > in) and overlaps the default content of "HOME." If I click on CONTACT, > > > the same thing happens, this time overlapping the previous "page" > > > which was CONTENT. > > > > I managed to make individual instances of the Effect.Appear using > > > Script.aculo.us, but my DIVs won't overlap. I tried fixing it with CSS > > > z-index, but it's still messed up. > > > > On Nov 10, 8:04 pm, "Alex Mcauley" <[EMAIL PROTECTED]> > > > wrote: > > > > Cogent : firstly stay away from onload ... use the > > > > Event.observe(window,'load',function() { > > > > Your exeutable functiosn go in here}); > > > > > Wrapper .... > > > > > there are a couple of ways to achieve what you want .. > > > > > You could set a timeout on a for loop counting each of the divs in a > > > > classname and itterate the loop - this is probably the easiest way > > > > to > > > > do > > > > it, > > > > i will explain how to do the other ways if this method is not > > > > suitable > > > > for > > > > you.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---