Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @author Sam De Decker
- */
- $(document).ready(function(){
- var params = { wmode: 'transparent'}
- ;
- swfobject.embedSWF('banner.swf', 'flashreel', 900, 120, '9.0.0', 'expressInstall.swf', null, params);
- $('#search-text').keyup(interceptSearch).attr('autocomplete', 'off');
- $('body').click(function(){
- $('#search ul').remove();
- });
- $("#innerheader a:first").click(function(){
- $('#search ul').remove();
- });
- $('#search-text').Watermark("Zoek covers op titel");
- $('#header').css("top", "-40px");
- $("#innerheader a:first").toggle(function(){
- $('#header').animate({
- top: '0px'
- }, 500, function(){
- $("#innerheader a:first").removeClass('closeopen');
- $("#innerheader a:first").addClass("openclose");
- $.cookie('openclose', 'open');
- });
- }, function(){
- $('#header').animate({
- top: '-40px'
- }, 500, function(){
- $("#innerheader a:first").removeClass('openclose');
- $("#innerheader a:first").addClass("closeopen");
- $.cookie('openclose', 'close');
- });
- });
- if ($.cookie('openclose') == 'open') {
- $("#header").css({
- "top": "0px"
- });
- $("#innerheader a:first").removeClass('closeopen');
- $("#innerheader a:first").addClass("openclose");
- }
- });
- function interceptSearch(e){
- $.ajax({
- type: "POST",
- data: $(this).parent().parent().serialize(),
- url: "index.php?page=search",
- timeout: '3000',
- error: function(XMLHttpRequest, textStatus, errorThrown){
- alert('Error loading HTML document: ' + textStatus + ' - ' +
- errorThrown);
- },
- success: function(data){
- $('#search ul').remove();
- $('#search').append(data);
- }
- });
- }
- function changeDetailsFromFlash(imagepath){
- $.ajax({
- type: "POST",
- data: {
- imgurl: imagepath
- },
- url: "index.php?page=detail",
- timeout: '3000',
- error: function(XMLHttpRequest, textStatus, errorThrown){
- alert('Error loading HTML document: ' + textStatus + ' - ' + errorThrown);
- },
- success: function(data, textStatus){
- $('#content').html(data);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement