Jump to content
achif

Special Page Scrolling Effect With Jquery!

Recommended Posts

achif    0
achif

Hello,

Recently I've found a tutorial that shows how to design a website with a really simple page scrolling effect using jquery.

I wonder if this can be used in pagelines to add some simple content inside a page. It would be really cool!

Please if you have some little time, visit the site of the tutorial, it is very short.

http://blog.entheosw...with-css-jquery

Thanks a lot!

Share this post


Link to post
Share on other sites
James B    436
James B

I'm not a developer, but looking at the code I can't see any reason why you wouldn't be able to achieve this. You'd probably need to find a way of working it into a hook (http://api.pagelines.com/hooks) or creating a child theme out of it (http://demo.pagelines.me/theming), as you wouldn't be able to edit/alter the core PL files. They've provided you with all the data, so it would just be putting it all together.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
achif    0
achif

thanks man, I'll see what i can do with all this.

Share this post


Link to post
Share on other sites
Jenny    33
Jenny

Sounds good! Please let us know if you consider this topic resolved.


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
achif    0
achif

I think it is closed.

Thanks!

Share this post


Link to post
Share on other sites
achif    0
achif

One last question related to this, i don't know how to use the hooks, where should i put the jquery code?

this is the code:

$(".link").click(function(){

var page = $(this).attr("id");

var color = $(this).attr("class");

color = color.substr(5,6);

$('#all_pages').animate({left: (page-1)*(-1000) });

$("body").animate({backgroundColor: '#'+color});

$("#menu ul li").removeClass('active');

$(this).addClass('active');

});

Share this post


Link to post
Share on other sites
Rob    547
Rob

I don't know jquery code, but I think it should be wrapped in something like this example:


   <script src="prototype.js"></script>

   <script src="jquery.js"></script>

   <script>

	 jQuery.noConflict();


	 // Use jQuery via jQuery(...)

	 jQuery(document).ready(function(){

	   jQuery("div").hide();

	 });


	 // Use Prototype with $(...), etc.

	 $('someid').hide();

   </script>

If your code has the <script> wrap, then you can go to Dashboard > PageLines > Site Options > Custom Code and paste the full code into the Header Scripts section. Broken code however, will likely cause problems for your site, so make sure it's the correct, valid code.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
achif    0
achif

Thanks, i have just realized that error!

the topic should be closed now.

thaks again to all of the team.

Share this post


Link to post
Share on other sites
James B    436
James B

The topic was marked as resolved.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • cas45
      By cas45+
      I am running a site based on PageLines Framework 2.5.0. I am making some changes to a current website and managed to find a script that will do what I want.:
       
      $(".vend-cat").each( function() {
          if ( $(this).find(".no-vendors").html() == '' ) {
                 $(this).hide();
          }
      } );
       
      I have tested it on jsfiddle and it works fine. It does however need to be adapted to work with jQuery for pagelines and wordpress. Any help or advice?
       
      Thanks
    • kwaoru
      By kwaoru
      Hi,
      After I installed platform 5, a Scroll Nav stopped working properly. It stopped following down as I scroll down the screen and it is very frustrating....
      I tried to add a new Scroll Nav, deactivated platform 5 or whatever I could think of to refresh to get the function back but nothing works out...
      Please please please help me wise folks out there!
      Thanks,
    • kwaoru
      By kwaoru
      Hi,
      After I installed platform 5, a Scroll Nav stopped working properly. It stopped following down as I scroll down the screen and it is very frustrating....
      I tried to add a new Scroll Nav, deactivated platform 5 or whatever I could think of to refresh to get the function back but nothing works out...
      Please please please help me wise folks out there!
      Thanks,
    • unifeyed
      By unifeyed+
      Hello there. 
      I am trying to have all the ® symbols throughout my website superscript without having to individually go to each symbol and wrap them in <sup> tags. There is quite a bit of them. I have the following code within the Custom Scripts, but it seems to cause issues with the Hamburger navigation, as it does not seem to work. Can you offer up some assistance? 

      <script>
      jQuery(document).ready(function() {
                 jQuery("body").html(
          jQuery("body").html().replace(/®/gi, '<sup>®</sup>').replace(/®/gi, '<sup>®</sup>')
         );
              });
      </script>
    • tuciudadenred
      By tuciudadenred+
       
      I have problems with the scroll, someone who can help me?
      Video_1487265541.wmv
×