josias Posted April 20, 2010 Share Posted April 20, 2010 I need insert this to my header.tpl script type="text/javascript" $(function() { $("a[rel]").overlay({ expose: 'darkred', effect: 'apple', onBeforeLoad: function() { // grab wrapper element inside content var wrap = this.getContent().find(".contentWrap"); // load the page specified in the trigger wrap.load(this.getTrigger().attr("href")); } }); }); /script when I do, appears all white?what happen with this code?thank you very much Link to comment Share on other sites More sharing options...
Kalastudio Posted April 20, 2010 Share Posted April 20, 2010 expose: 'darkred', effect: 'apple', The commas, are there right?Is what I see... anyone else..? Link to comment Share on other sites More sharing options...
josias Posted April 20, 2010 Author Share Posted April 20, 2010 Thank you for your answer.I succesfully fix with:{literal} at beginning{/literal} at the end Link to comment Share on other sites More sharing options...
miracle Posted April 20, 2010 Share Posted April 20, 2010 try that:{literal} [removed] <!--$(function() { $("a[rel]").overlay({ expose: 'darkred', effect: 'apple', onBeforeLoad: function() { // grab wrapper element inside content var wrap = this.getContent().find(".contentWrap"); // load the page specified in the trigger wrap.load(this.getTrigger().attr("href")); } });}); //--> [removed]{/literal} Link to comment Share on other sites More sharing options...
josias Posted April 20, 2010 Author Share Posted April 20, 2010 try that:{literal} [removed] <!--$(function() { $("a[rel]").overlay({ expose: 'darkred', effect: 'apple', onBeforeLoad: function() { // grab wrapper element inside content var wrap = this.getContent().find(".contentWrap"); // load the page specified in the trigger wrap.load(this.getTrigger().attr("href")); } });}); //--> [removed]{/literal} Yes, with {literal} works finethank you v.much Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now