SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How i can add js popup in my site.

    Hi,
    I want add js popup to my site, but i dont know how.

    Site:
    Code:
    fenster-norta.at/angebot/
    I need all link from angebot in new popup or frame.

    Main.js

    Code:
    /* Author:
    
    */
    
    $(function() {
    	//$('#menu.single .taxlist a').click(function(event) {
    		//event.preventDefault();
    		//$('body,html').animate({scrollTop:$(document).height()},800, 'linear', function() {
    	//		$('body,html').animate({scrollTop:823},500, 'linear', function() {
    			
    	//	});
    	//	return false;
    	//});	
    	$("html, body").animate({ scrollTop: $('#parent').offset().top }, 1000);
    	$('.to-top').click(function () {
    			$('body,html').animate({
    				scrollTop: 0
    			}, 300);
    			return false;
    		});
    
    	$('#menu a, #parent .list-thumb-child  a').tooltip();
    	$(".picture a").click(function() { 
            $.fancybox({ 
               'padding'           : 0, 
               'overlayShow'   : false, 
               'href': this.href, //<--LIKE THIS
            }); 
            return false; 
        }); 
        
    });
    Thanks 4 help !!

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,683
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    The fancybox demo page has an iframe demo. The iframe can contain content from other sites. That seems to be the solution that you're needing there.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •