free flash templates free css & photoshop templates free flash animation |
#6
|
|||
|
|||
Add an absolute URL or a link to an other website from a flash button
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; } 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; }
__________________
We are always pleased to read you in our guestbook |
|
|