Created
May 2, 2012 08:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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