free flash templates free css & photoshop templates free flash animation |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Template menu button pointing to external URL
I saw this old thread but was wondering where exactly in the replacement code the address of the URL would go. I'm also a bit confused about the button as well. The button on my website would be called HOTEL and the URL - www.stranhotelbude.co.uk.
Any help would be greatly appreciated. Quote: Originally Posted by freenicetemplates Here is the hack to allow absolute URL in flash buttons and open them in a new window. If you want the link top open in the same window replace _blank by _self. Open the file js/main.js and replace at the end of the file function : Code: function showPage(pageURL,button_id) { hideContent(pageURL); if (selected_button!="" && button_id!=selected_button) { sendToASUnselectButton('anim_'+selected_button); } selected_button = button_id; }by Code: function showPage(pageURL,button_id) { if (pageURL.substring(0,4).toLowerCase()=='http') { window.open(pageURL, '_blank'); return; }; hideContent(pageURL); if (selected_button!="" && button_id!=selected_button) { sendToASUnselectButton('anim_'+selected_button); } selected_button = button_id; } |
|
|