free flash templates
free flash templates menu free css & photoshop templates menu free flash animation

Go Back   free flash templates forum > Free flash templates

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-10-2009, 07:36 AM
freenicetemplates freenicetemplates is offline
Administrator
 
Join Date: Mar 2009
Posts: 507
Default Add a new photo gallery page (portfolio) - templates 7,8,9

Here are the steps to follow to the letter to add a new flash portfolio page :

- Replace function myFlashGallery in file js/main.js : lines 61 to 68 by these ones:

PHP Code:
function myFlashGallery (_src,_width,_height,_bgcolor,_divID,gallery) { 
if (
window.document.getElementById(_divID)) {
if (
gallery == null){
gallery 'gallery.xml';
}
window.document.getElementById(_divID).innerHTML=AC_FL_RunContentDiv'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width',_width,'height',_height,'src',_src,'quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie',_src,'bgcolor',_bgcolor,'allowScriptAccess','sameDomain','allowFullScreen','true','FlashVars','xmlFile='+gallery); //end AC code 
AC_FL_RunContentDiv'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','540','height','418','src','flash/gallery/gallery','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/gallery/gallery','bgcolor','#FFFFFF','allowFullScreen','true'); //end AC code 
} else {
alert("Div '"+_divID+"' not found ");
}

- After, duplicate the _portfolio page where the second gallery will be added, for exemple call it _portfolio2.htm.

- In this new page _portfolio2.htm edit the content like this :
myFlashGallery('flash/gallery',540,418,'#000000','flash_id','gallery2.xml');

- Duplicate gallery.xml file in 'gallery2.xml' and edit this file for the new gallery.
__________________
We are always pleased to read you in our guestbook
Reply With Quote
  #2  
Old 12-26-2009, 08:35 AM
helgavalerie
Guest
 
Posts: n/a
Default

thanks for a useful thread, guys)))
Reply With Quote
  #3  
Old 01-12-2010, 08:53 AM
freenicetemplates freenicetemplates is offline
Administrator
 
Join Date: Mar 2009
Posts: 507
Default 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;
}
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
Reply With Quote
  #4  
Old 05-10-2010, 06:08 AM
jstnice
Guest
 
Posts: n/a
Default

thanks for a sharing useful thread!!!
Reply With Quote
  #5  
Old 11-12-2010, 03:29 PM
crystal8es
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by jstnice View Post
thanks for a sharing useful thread!!!

I am a newbie here and just wanna say Hi to everyone. I am Crystal from Louisiana, US.


__________________
free photoshop tutorials
Reply With Quote
  #6  
Old 05-17-2010, 02:01 PM
freenicetemplates freenicetemplates is offline
Administrator
 
Join Date: Mar 2009
Posts: 507
Default Add a text link like a flash button

You can add a link in the same page (like a button does) this way:
<a href="javascript:showPage('_mypage.htm');">mylink</a>
__________________
We are always pleased to read you in our guestbook
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:14 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.