Thread: [SOLVED] Customize Template9
View Single Post
  #7  
Old 01-07-2010, 02:34 PM
freenicetemplates freenicetemplates is offline
Administrator
 
Join Date: Mar 2009
Posts: 507
Default Absolute URL in flash buttons links

Hi,
Here is the hack to allow absolute URL in flash buttons. 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; 
}
__________________
We are always pleased to read you in our guestbook