View Single Post
  #4  
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