Advertisement
| Hall of Fame |
|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: |
<script src="<?php echo $domain; ?>scripts/getpics.php?project=<?php echo $row_project_page['project_short_name']; ?>" type="text/javascript"></script>
<script src="<?php echo $domain; ?>scripts/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
/***********************************************
* PHP Photo Album script- Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
var dimension="3x2" //Specify dimension of gallery (number of images shown), such as 4x2, 3x1 etc
var imagepath="<?php echo $domain; ?>projects/<?php echo $row_project_page['project_short_name']; ?>/thumbs/" //Absolute path to image directory. Include trailing slash (/)
var swfThumbSize={width: '100px', height: '100px'};
var href_target="new" //Enter target attribute of links, if applicable
//Toggle popup link setting: popupsetting[0 or 1, "pop up window attributes" (if 1)]
var popupsetting=[1, "width=500px, height=400px, scrollbars, resizable"]
//Toggle image description: descriptionprefix[0 or 1, "Text to show" (if 1)]
var descriptionprefix=[0, "Photo "]
//Sort images by date? ("asc", "desc", or "")
//"desc" for example causes the newest images to show up first in the gallery
//"" disables this feature, so images are sorted by file name (default)
var gsortorder=""
//By default, each image hyperlinks to itself.
//However, if you wish them to link to larger versions of themselves
//Specify the directory in which the larger images are located
//The file names of these large images should mirror those of the original
//Enter a blank string ("") to disable this option
var targetlinkdir="<?php echo $domain; ?>projects/<?php echo $row_project_page['project_short_name']; ?>/large/"
var swfLargeSize={width: '300px', height: '300px'};
/////No need to edit beyond here///////////////////
function sortbydate(a, b){ //Sort images function
if (gsortorder=="asc") {
//sort by file date: older to newer
return new Date(a[1])-new Date(b[1]);
} else if (gsortorder=="desc") {
//sort by file date: newer to older
return new Date(b[1])-new Date(a[1]);
}
}
if (gsortorder=="asc" || gsortorder=="desc") {
galleryarray.sort(sortbydate);
}
var totalslots=dimension.split("x")[0]*dimension.split("x")[1];
function buildimage(elem,i){
var ext = galleryarray[i][0].split('.');
ext = ext[ext.length-1].toLowerCase();
var tempcontainer;
if (galleryarray[i][2]!="") {
var imagecompletepath=(targetlinkdir!="")? targetlinkdir+galleryarray[i][2] : imagepath+galleryarray[i][2];
} else {
var imagecompletepath=(targetlinkdir!="")? targetlinkdir+galleryarray[i][0] : imagepath+galleryarray[i][0];
}
switch (ext) {
case 'swf':
tempcontainer='<a href="' + imagecompletepath + '" target="' + href_target + '" onClick="return popuplinkfunc(this)">'
tempcontainer+='<div id="flashItem' + i + '">Flash Item ' + galleryarray[i][0] + ' [' + galleryarray[i][1] + ']</div>';
tempcontainer+= galleryarray[i][0] + ' [' + galleryarray[i][1] + ']';
tempcontainer+='</a><br />';
tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : "";
elem.innerHTML=tempcontainer;
var thumbSO = new SWFObject( imagepath+galleryarray[i][0] , "Thumb", swfThumbSize['width'],swfThumbSize['height'],1,"#fff" );
thumbSO.write('flashItem' + i);
break;
default:
tempcontainer='<a href="'+imagecompletepath+'" target="'+href_target+'" onClick="return popuplinkfunc(this)">';
tempcontainer+='<img src="'+imagepath+galleryarray[i][0]+'" title="'+galleryarray[i][0]+' ['+galleryarray[i][1]+']" />';
tempcontainer+='</a><br />';
tempcontainer+=(descriptionprefix[0]==1)? descriptionprefix[1]+(i+1) : "";
elem.innerHTML=tempcontainer;
}
return true;
}
function jumptopage(p){
var startpoint=(p-1)*totalslots;
var y=1;
for (i=0; i<totalslots; i++){
if (typeof galleryarray[startpoint+i]!="undefined") {
buildimage( document.getElementById("slide"+i), startpoint+i);
} else {
document.getElementById("slide"+i).innerHTML=''
}
}
while(document.getElementById("navlink"+y)!=null){
document.getElementById("navlink"+y).className="";
y++;
}
document.getElementById("navlink"+p).className="current";
}
//this is the function which gets the image to open in targetdiv
function popuplinkfunc(imgsrc){
if (popupsetting[0]==1){
var ext = imgsrc.href.split('.');
ext=ext[ext.length-1].toLowerCase();
switch (ext) {
case 'swf':
document.getElementById("targetdiv").innerHTML="<div id=\"largeSwf\"></div>";
var largeSO = new SWFObject( imgsrc.href , "Large", swfLargeSize['width'],swfLargeSize['height'],1,"#fff" );
largeSO.write('largeSwf');
break;
default:
document.getElementById("targetdiv").innerHTML='<img src="'+imgsrc.href+'" />';
}
return false;
}
else
return true;
}
</script>
</head>
<body>
<div class="project_id">
<h1>0<?php echo $row_project_page['project_position']; ?>/</h1>
</div>
<div class="project_name">
<h2><?php echo $row_project_page['project_name']; ?></h2>
</div>
<div class="project_type">
<h3><?php echo $row_project_page['project_type']; ?></h3>
</div>
<div id="targetdiv"><script type="text/javascript">
document.write('<img src="'+imagepath+galleryarray[0]+'">');
</script></div>
<!-- galley and JS script here -->
<script type="text/javascript">
var curimage=0;
for (y=0; y<dimension.split("x")[1]; y++){
for (x=0; x<dimension.split("x")[0]; x++){
if (curimage<galleryarray.length) {
document.write('<div id="slide'+curimage+'" class="slideshow"></div>');
buildimage(document.getElementById('slide'+curimage),curimage);
} else {
document.write('<div id="slide'+curimage+'" class="slideshow"></div>');
}
curimage++;
}
document.write('<br style="clear: left" />');
}
</script>
<!--Below HTML code refers to the navigational links for the gallery-->
<div id="navlinks">
<script type="text/javascript">
var itemsperpage=totalslots
for (i=1; i<Math.ceil(galleryarray.length/totalslots)+1; i++){
var start=(i==1)? i : itemsperpage*(i-1)+1
var end=(i==1)? itemsperpage : Math.min(galleryarray.length, start+itemsperpage-1)
document.write('<a id="navlink'+i+'" href="javascript:jumptopage('+i+')\">'+start+' to '+end+'</a> ')
}
document.getElementById("navlink1").className="current"
</script>
</div>
|