Skip to content

Instantly share code, notes, and snippets.

@pwhelan
Created May 2, 2012 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwhelan/2575226 to your computer and use it in GitHub Desktop.
Save pwhelan/2575226 to your computer and use it in GitHub Desktop.
Simple script that can be included directly to generate the book now button
var bookNowButtonGenerate = function() {
var open_new_window = function(URL)
{
var opts = "toolbar=no,menubar=0,status=1,copyhistory=0,scrollbars=yes"
",resizable=1,location=0,Width=1065,Height=760";
var click4time_window = window.open('', "_blank", opts);
click4time_window.location = URL;
};
var stepURL = 'https://book.click4time.com/sassonabaron/book/step1';
var imgURL = 'http://book.click4time.com/images/buttons/large_blue_bevel.png';
document.write('<a ' +
'onClick="open_new_window(\''+stepURL+'\')" href="#" title="Book Online">' +
'<img src="+imgURL+" alt="Book online now" border="0" />' +
'</a>');
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment