PDA

View Full Version : help with flash slide show


stephenbruno
Jan-02-2008, 09:39 AM
I sure could use help to get my flash slide show working on the home page. I followed the instructions but I have just the same old slide show working.

:dunno

Allen
Jan-02-2008, 09:47 AM
I sure could use help to get my flash slide show working on the home page. I followed the instructions but I have just the same old slide show working.

:dunno
Try this first.
Change this in your bio

oParams.AlbumID = "1866956#134303804";

to this

oParams.AlbumID = "1866956";

You might have to disable/remove the old show code.

At the bottom of your javascript remove the red. Ignore the line numbers.

function hasPath(sPath)
492{
493 re = new RegExp("\/" + sPath + "(\/|$)");
494 return re.test(window.location)
495}
496
497
498}
499
500
501function hasPath(sPath)
502{
503 re = new RegExp("\/" + sPath + "(\/|$)");
504 return re.test(window.location)
505}

stephenbruno
Jan-02-2008, 10:03 AM
Now I no longer have any slide show on the home page. Help?


Try this first.
Change this in your bio

oParams.AlbumID = "1866956#134303804";

to this

oParams.AlbumID = "1866956";

You might have to disable/remove the old show code.

At the bottom of your javascript remove the red. Ignore the line numbers.

function hasPath(sPath)
492{
493 re = new RegExp("\/" + sPath + "(\/|$)");
494 return re.test(window.location)
495}
496
497
498}
499
500
501function hasPath(sPath)
502{
503 re = new RegExp("\/" + sPath + "(\/|$)");
504 return re.test(window.location)
505}

Allen
Jan-02-2008, 10:14 AM
Now I no longer have any slide show on the home page. Help? This is at the bottom of your js. Remove the red.

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)



This goes in your Footer, remove it here.


if (hasPath("featured"))
YAHOO.util.Dom.addClass(document.body, "featured");


This one is ok as is.


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}


Add this to your footer, it will create the galleries and featured duplicate
homepages.

<script>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("featured"))
YD.addClass(document.body, "featured");
</script>

stephenbruno
Jan-02-2008, 10:22 AM
can you please take another look...i must be doing something wrong...thanks much

This is at the bottom of your js. Remove the red.

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)



This goes in your Footer, remove it here.


if (hasPath("featured"))
YAHOO.util.Dom.addClass(document.body, "featured");


This one is ok as is.


function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}


Add this to your footer, it will create the galleries and featured duplicate
homepages.

<script>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("featured"))
YD.addClass(document.body, "featured");
</script>

Allen
Jan-02-2008, 11:06 AM
can you please take another look...i must be doing something wrong...thanks much
Add the closing } at the very end of your js.

function hasPath(sPath){
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

stephenbruno
Jan-02-2008, 11:11 AM
not working yet and in the footer i get the following:


Email Me (stephenbrunophotography@yahoo.com) All images © Stephen Bruno, 2004-2008 Back to Home Page (http://stephenbrunophotography.com/)
document.title="Stephen Bruno Photography"; /* required slideshow variables */ slideshowContainerId = "bioBox"; slideshowUrl = "http://stephenbrunophotography.smugmug.com/gallery/1866956"; /* optional slideshow variables */ /* see properties section */ slideControls = true; loadSlideshow(); if (hasPath("featured")) YAHOO.util.Dom.addClass(document.body, "featured");if (hasPath("galleries"))YD.addClass(document.body, "galleries");if (hasPath("featured"))YD.addClass(document.body, "featured");


Add the closing } at the very end of your js.

function hasPath(sPath){
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

Allen
Jan-02-2008, 11:26 AM
not working yet and in the footer i get the following:
... Remove the red in your footer.

<div id="myFooter" align="center">
<a href="mailto:stephenbrunophotography@yahoo.com">Email Me</a>
All images © Stephen Bruno, 2004-2008
<a href="http://stephenbrunophotography.com/">Back to Home Page</a>
</div>

<script type="text/javascript" language="javascript">
document.title="Stephen Bruno Photography";
</script>

<script type="text/javascript">
/* required slideshow variables */
slideshowContainerId = "bioBox";
slideshowUrl = "http://stephenbrunophotography.smugmug.com/gallery/1866956";
/* optional slideshow variables */
/* see properties section */
slideControls = true;
loadSlideshow(); </script>

if (hasPath("featured"))
YAHOO.util.Dom.addClass(document.body, "featured");

<script>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("featured"))
YD.addClass(document.body, "featured");
</script>

stephenbruno
Jan-02-2008, 11:40 AM
thanks removed thing in footer but even when i click slide show does not turn on...no slide show still on home page...is it possible i now have incorrect slide show galley listed? i have watched you patiently help others (and me) so i know that you will help me figure out this issue and get the new great flash slide show running soon :) thanks


Remove the red in your footer.

<div id="myFooter" align="center">
<a href="mailto:stephenbrunophotography@yahoo.com">Email Me</a>
All images © Stephen Bruno, 2004-2008
<a href="http://stephenbrunophotography.com/">Back to Home Page</a>
</div>

<script type="text/javascript" language="javascript">
document.title="Stephen Bruno Photography";
</script>

<script type="text/javascript">
/* required slideshow variables */
slideshowContainerId = "bioBox";
slideshowUrl = "http://stephenbrunophotography.smugmug.com/gallery/1866956";
/* optional slideshow variables */
/* see properties section */
slideControls = true;
loadSlideshow(); </script>

if (hasPath("featured"))
YAHOO.util.Dom.addClass(document.body, "featured");

<script>
if (hasPath("galleries"))
YD.addClass(document.body, "galleries");

if (hasPath("featured"))
YD.addClass(document.body, "featured");
</script>

Allen
Jan-02-2008, 11:52 AM
thanks removed thing in footer but even when i click slide show does not turn on...no slide show still on home page...is it possible i now have incorrect slide show galley listed? i have watched you patiently help others (and me) so i know that you will help me figure out this issue and get the new great flash slide show running soon :) thanks
I don't see any bio info in your page source. Go into your control panel under
the homepage tab and if you see it click show.

stephenbruno
Jan-02-2008, 12:05 PM
can't see where to click it to show...i know to put up original slide show i had to do somthing i forget with bio

I don't see any bio info in your page source. Go into your control panel under
the homepage tab and if you see it click show.

stephenbruno
Jan-02-2008, 12:07 PM
still no slide show but we must be getting closer :)

I don't see any bio info in your page source. Go into your control panel under
the homepage tab and if you see it click show.

Allen
Jan-02-2008, 12:12 PM
still no slide show but we must be getting closer :)
It's running here in Firefox. What browser are you using? and OS

stephenbruno
Jan-02-2008, 12:21 PM
:clap Yeah! It is up in running now in Firefox and Netscape...but not in IE... excellent to get me this far and i really appreciate your patience and expertise..any ideas for IE?

It's running here in Firefox. What browser are you using? and OS

Allen
Jan-02-2008, 12:55 PM
:clap Yeah! It is up in running now in Firefox and Netscape...but not in IE... excellent to get me this far and i really appreciate your patience and expertise..any ideas for IE?
IE 6 or 7? I can't get my IE6 to run the show, but on lappy IE7 started
running after I installed Flash there. Try installing Flash using IE.

stephenbruno
Jan-02-2008, 12:56 PM
:clap :clap :clap I truly appreciate you Allen. It is running in all browsers, albeit, slowly at first. I wonder if there is a way to speed it up when running first time. Thank you very much for your help, this slideshow is very cool and i value your time and knowledge.



:clap Yeah! It is up in running now in Firefox and Netscape...but not in IE... excellent to get me this far and i really appreciate your patience and expertise..any ideas for IE?

stephenbruno
Jan-02-2008, 01:12 PM
Where do I find Flash?


IE 6 or 7? I can't get my IE6 to run the show, but on lappy IE7 started
running after I installed Flash there. Try installing Flash using IE.

ivar
Jan-02-2008, 01:22 PM
If you don't have the flash player, go here: http://www.adobe.com/go/gntray_dl_getflashplayer

if that doesn't work, go to www.adobe.com and then Downloads>Get Flash Player

stephenbruno
Jan-02-2008, 01:40 PM
I downloaded and rebooted...thanks...do you find that it starts slow initially?


If you don't have the flash player, go here: http://www.adobe.com/go/gntray_dl_getflashplayer

if that doesn't work, go to www.adobe.com (http://www.adobe.com) and then Downloads>Get Flash Player

ivar
Jan-02-2008, 01:42 PM
I downloaded and rebooted...thanks...do you find that it starts slow initially?No, not really actually. Define 'slow'?

stephenbruno
Jan-02-2008, 02:14 PM
takes about a minute or so to start up

No, not really actually. Define 'slow'?

ivar
Jan-02-2008, 02:15 PM
takes about a minute or so to start up
That's not 'slow', that's 'something is wrong'.

Clear your cache, etc, does that help? Is that for all flash slideshows? how about mine (http://www.ivarborst.com)?

stephenbruno
Jan-02-2008, 02:25 PM
yours is faster and and it shows it is loading where mine does not...any ideas? How do I clear cache?

i think your site is great and yoiur images wonderful.

That's not 'slow', that's 'something is wrong'.

Clear your cache, etc, does that help? Is that for all flash slideshows? how about mine (http://www.ivarborst.com)?

ivar
Jan-02-2008, 02:34 PM
yours is faster and and it shows it is loading where mine does not...any ideas? How do I clear cache?

i think your site is great and yoiur images wonderful.You have some errors and problems in your current code. I took out some critical ones, but you need to go over it to look for some more. Also, all the old slideshow code seems to be still there?

stephenbruno
Jan-02-2008, 02:37 PM
you are most certainly correct but i do not know what to remove.

You have some errors and problems in your current code. I took out some critical ones, but you need to go over it to look for some more. Also, all the old slideshow code seems to be still there?

ivar
Jan-02-2008, 02:44 PM
you are most certainly correct but i do not know what to remove.Standby, make sure you log/stay out of your control panel for a bit, okay? :D Just to be sure, the old slideshow you are not using anywhere, right?

stephenbruno
Jan-02-2008, 02:54 PM
i sure appreciate this and i'll stay out of it. Correct. I'd prefer to just use this new Flash one.

thanks alot!


Standby, make sure you log/stay out of your control panel for a bit, okay? :D Just to be sure, the old slideshow you are not using anywhere, right?

ivar
Jan-02-2008, 03:13 PM
i sure appreciate this and i'll stay out of it. Correct. I'd prefer to just use this new Flash one.

thanks alot!Cool.

I'm going to copy your old code here in case I make a booboo

.cartbuttons .title {color:red;}

#ssSlide {height: 500px;}


#cobrand_footer .nav {color: #242af2;}

homepage h1 {
color: #FF1493;
font-size: 120%;
font-family: Comic Sans MS, verdana, tahoma;
font-weight: normal;
}




#myHeader {
text-align: center;
margin: 10px auto 20px;
color: #ccc;
font-size: 300%;
font-family: Comic Sans MS, verdana;
}



#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li {
display: inline;
}

#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #036;
}

#navcontainer ul li a:hover {
color: #fff;
background-color: #369;
}


.homepage #categoriesBox {display: none;}


body {
opacity: 1;
}

#bioBox .photo {
display: none;
}

#userBio {
text-align: center;
}


#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li {
display: inline;
}

#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #000;
}

#navcontainer ul li a:hover {
color: #fff;
background-color: #b80;
}
#ssControl {padding: 15px; text-align: center;}

.ssBtn {outline: none;}

.ssBtn img {height: 20px; width: 20px;}

#ssPlay {display: none;}

#ssPrev img {background-image:
url(/photos/187973629-O.png);
_background: none; background-repeat: no-repeat;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enable d=true,
sizingMethod=scale,
src='/http://stephenbrunophotography.smugmug.com/photos/187973629-O.png');}


#ssNext img {background-image:
url(/photos/187973609-O.png);
_background: none; background-repeat: no-repeat;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enable d=true,
sizingMethod=scale,
src='/http://stephenbrunophotography.smugmug.com/photos/187973609-O.png');}

#ssPlay img {background-image:
url(/photos/187973627-O.png);
_background: none; background-repeat: no-repeat;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enable d=true,
sizingMethod=scale,
src='/http://stephenbrunophotography.smugmug.com/photos/187973627-O.png');}

#ssPause img {background-image:
url(/photos/187973618-O.png);
_background:none; background-repeat: no-repeat;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enable d=true,
sizingMethod=scale,
src='/http://stephenbrunophotography.smugmug.com/photos/187973618-O.png');}

gallery_1790400 .boxTop .title {color: #ccff99;}
.gallery_1790400 .boxBottom .foreground {color: #E5FFCB;}

.gallery_1790400 .boxTop {
color: #ccff99;
background-color: #454545;
border: solid 1px #ccff99;}

.gallery_1790400 .boxBottom {
background-color: #2d2d2d;
border: solid 1px #ccff99;}



#my_banner {
width: 750px;
height: 100px;
margin: 0 auto;
background: url(http://StephenBrunoPhotography.smugmug.com/photos/124731668-L.jpg.
) no-repeat;
}

#userName {
display: none;
}

#userHome {
display: none;
}
#SBPheader {display: none;}
.homepage #SBPheader {display: block;}

#bioBox {background:transparent;}


#bioBox {text-align: center;} /* For slideshow */

#galleriesBox .title {display: none;}


#navcontainer {display: block;}


.categoriesBox .boxTop { display: none; }


.gallery_1790400 .pageNav {display: none;}




.miniBox {width:122px; text-align:center; height:210px; margin:0 28px;}
.miniBox .photo {float:none; width:122px; height:auto; _height:1px;}
.miniBox .albumTitle {width:122px;}
.miniBox .description {width:122px;}
.miniBox .updated {width:122px;}

.loggedIn .miniBox {height:auto; min-height:300px;}
.loggedIn .miniBox .smbuttons {margin:0 auto; width:122px;}
.loggedIn .miniBox input {width:122px;}
.loggedIn .miniBox textarea {width:112px;}

.boxBottom .albumLarge {width:192px; height:350px; text-align:center; margin:0 24px;}
.albumLarge .photoLarge {float:none; width:192px; height:auto; _height:1px;}
.albumLarge .albumTitle {width:192px;}
.albumLarge .description {width:192px;}
.albumLarge .updated {width:192px;}

.loggedIn .boxBottom .albumLarge {height:auto; min-height:450px;}
.loggedIn .albumLarge .smbuttons {margin:0 auto; width:192px;}
.loggedIn .albumLarge input {width:192px;}
.loggedIn .albumLarge textarea {width:182px;}





body {
background-attachment: fixed;
background-image:
url(http://stephenbrunophotography.smugmug.com/gallery/1806373);
background-repeat: no-repeat;
background-position: right bottom;
}



.loggedIn .homepage #categoriesBox {display: block;}


body {
background-attachment: fixed;
background-image:
url(http://stephenbrunophotography.smugmug.com/gallery/1951058);
background-repeat: no-repeat;
background-position: center center;
}

Body { background-image: url(stephenbrunophotography.smugmug.com/gallery/1951058); }


function createSWF( w, h, params) {
var args = "";
for (var i in params) {
args += i + "=" + params[i] + "&amp;";
}
document.writeln('<object width="100%" height="100%" align="middle">'+ '<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'"/>'+ '<param name="wmode" value="transparent" />'+ '<embed src="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'" wmode="transparent" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"/></object>');
return 1;
}


SM.PhotoBar.config.position = 'bottom';

function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_1790400"))
{
var objElement = YD.get("comment")
if (objElement != null)
{
var str = new String(objElement.innerHTML);
str = str.replace(/\gallery/gi, 'guestbook');
objElement.innerHTML = str;
}
}
}

YE.onAvailable("comment", ModifyText);


rightClickWarning = "All photos are property of Stephen Bruno Photography. All rights reserved. Unauthorized use is prohibited.";



function AddReferralCode() {
var footerDiv = YD.get("footer");
if (footerDiv) {
var links = footerDiv.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=bzHQPJ7IhCfbU";
}
}
}
YE.onAvailable('footer', AddReferralCode);

function journal_entry_s_to_m(div) {
var imgs = div.getElementsByTagName('IMG');
var re = /(http:\/\/[^\/]*\/photos\/\d+-)S.jpg/
for(var i=0; i<imgs.length; i++) {
if(re.test(imgs[i].src)) {
imgs[i].src=RegExp.$1+'M.jpg';
imgs[i].height = imgs[i].height * 1.5;
imgs[i].width = imgs[i].width * 1.5;
}
}
}
var divs = document.getElementsByTagName('DIV');
for (var i=0; i<divs.length; i++) {
if (divs[i].className=='journal_entry') {
journal_entry_s_to_m(divs[i]);
}
}


/*=========================*/
/*== SLIDE SHOW ==*/
/*== version 0.56 ==*/
/*== Updated 03 May 2006 ==*/
/*=========================*/
var SLIDE_SHOW = 0;
var RANDOM_PHOTO = 1;
var slideshowContainer;
var sSlide;
var sCaption;
var ssSlides;
var ssSlideTotal;
var ssSlideTimer;
var ssOldSlide;
var ssFadeTimer;
var ssFade;
var ssTimerId;
var blank;


function PrepSlideEnvironment()
{
tmpCookie = getCookie("Template");

blank = new Image();
blank.src = "/img/spacer.gif";

if (typeof(slideshowType) == "undefined" || (slideshowType != SLIDE_SHOW && slideshowType != RANDOM_PHOTO))
slideshowType = SLIDE_SHOW;

if (slideshowType == RANDOM_PHOTO)
randomSlides = true;

if (typeof(slideshowContainerId) == "undefined")
return false
else if (typeof(slideshowContainerId) == "string")
slideshowContainer = document.getElementById(slideshowContainerId);

if (!slideshowContainer)
return false;

if (typeof(slideshowUrl) == "undefined" || typeof(slideshowUrl) != "string")
return false;
else
slideshowUrl = /(?:http:\/\/[^\/]+)?(\/\S+)/.exec(slideshowUrl)[1];

if (/\/gallery\/[0-9]+/.test(slideshowUrl))
slideSourceIsGallery = true;
else
slideSourceIsGallery = false;

if (typeof(slideHeight) == "undefined" || isNaN(slideHeight))
slideHeight = "550";

if (typeof(slideWidth) == "undefined" || isNaN(slideWidth))
slideWidth = "750";

if (typeof(photoHeight) == "undefined" || isNaN(photoHeight))
photoHeight = slideHeight;

if (typeof(photoWidth) == "undefined" || isNaN(photoWidth))
photoWidth = slideWidth;

if (typeof(slideDuration) == "undefined" || isNaN(slideDuration))
slideDuration = 85;

if (typeof(firstSlideUrl) == "undefined" || typeof(firstSlideUrl) != "string")
firstSlideUrl = blank.src;

if (typeof(showSlideTransition) == "undefined" || typeof(showSlideTransition) != "boolean")
showSlideTransition = true;

if (typeof(resizeToPhoto) == "undefined" || typeof(resizeToPhoto) != "boolean")
resizeToPhoto = true;

if (typeof(quickStart) == "undefined" || typeof(quickStart) != "boolean")
quickStart = true;

if (typeof(randomSlides) == "undefined" || typeof(randomSlides) != "boolean")
randomSlides = false;

if (typeof(slideControls) == "undefined" || typeof(slideControls) != "boolean")
slideControls = false;

if (typeof(slideCaptions) == "undefined" || typeof(slideCaptions) != "boolean")
slideCaptions = false;

if (typeof(slidesClickable) == "undefined" || typeof(slidesClickable) != "boolean")
slidesClickable = false;

return true;
}


function loadSlideshow()
{
if (!PrepSlideEnvironment())
return false;

slideshowContainer.innerHTML = '<img src="http://www.smugmug.com/img/spacer.gif" alt="" id="ssSlide" height="' + slideHeight + '" width="' + slideWidth + '" style="opacity: .99; background-image: url(' + firstSlideUrl + '); background-repeat: no-repeat; background-position: center;" />';

if (slideCaptions)
slideshowContainer.innerHTML += '<div id="ssCaption"></div>';

if (slideControls)
slideshowContainer.innerHTML += '<div id="ssControl"><a title="Previous Slide" id="ssPrev" class="ssBtn" href="javascript: void(0);" onclick="prevSlide();"><img src="/img/spacer.gif" border="0" /></a><a title="Next Slide" id="ssNext" class="ssBtn" href="javascript: void(0);" onclick="nextSlide();"><img src="/img/spacer.gif" border="0" /></a><a title="Pause Slideshow" id="ssPause" class="ssBtn" href="javascript: void(0);" onclick="pauseSlideshow();"><img src="/img/spacer.gif" border="0" /></a><a title="Resume Slideshow" id="ssPlay" class="ssBtn" href="javascript: void(0);" onclick="resumeSlideshow();"><img src="/img/spacer.gif" border="0" /></a></div>';

sSlide = document.getElementById('ssSlide');
sCaption = document.getElementById('ssCaption');

if (slidesClickable) {
sSlide.style.cursor = 'pointer';

if (firstSlideUrl != blank.src)
ssAddSlideClick(slideshowUrl);
}

ssSlides = new Array(null);
ssSlideTotal = 0;
ssSlideTimer = 0;
ssOldSlide = 0;
ssFadeTimer = 100;
ssFade = "out";

if (slideSourceIsGallery)
ajax_query(slideshowHandler, '/photos/sspopup.mg?AlbumID=' + /\/gallery\/([0-9]+)/.exec(slideshowUrl)[1], null, true);
else {
var postArray = new Array();
postArray['TemplateID'] = '8';
postArray['origin'] = slideshowUrl;
ajax_query(slideshowHandler, '/homepage/templatechange.mg', postArray, true);
}
}


function slideshowHandler(response)
{
if (!slideSourceIsGallery) {
if (tmpCookie && tmpCookie != "") {
var postArray = new Array();
postArray['TemplateID'] = tmpCookie;
postArray['origin'] = slideshowUrl;
ajax_query(function(){}, '/homepage/templatechange.mg', postArray, true);
}
else
deleteCookie("Template", "/", "smugmug.com");
}

var re = /imageID\[\d+\] = "\d+";/g;
var re2 = /width\[\d+\] = "\d+";/g;
var re3 = /height\[\d+\] = "\d+";/g;
var re4 = /caption\[\d+\] = ".*";/g;

s = response.match(re);
w = response.match(re2);
h = response.match(re3);
c = response.match(re4);

var oSlide;

for (i = 0; i < s.length; i++)
{
oSlide = new Object;

temp = s[i].split(/"/);
oSlide.ImageId = temp[1];
oSlide.File = 'http://upload.smugmug.com/photos/toolthumbs.mg?ImageID=' + temp[1] + '&tool=slideshowXL&winHeight=' + photoHeight + '&winWidth=' + photoWidth;
oSlide.Gallery = slideshowUrl + '/1/' + oSlide.ImageId;

temp = h[i].split(/"/);
oSlide.Height = temp[1];

temp = w[i].split(/"/);
oSlide.Width = temp[1];

temp = c[i].split(/"/);
oSlide.Caption = temp[1];

oSlide.Loaded = false;

if ((oSlide.Width > photoWidth) || (oSlide.Height > photoHeight))
{
if (oSlide.Width >= oSlide.Height)
{
oSlide.Height = Math.round((oSlide.Height / oSlide.Width) * photoWidth);
oSlide.Width = photoWidth;
}
else
{
oSlide.Width = Math.round((oSlide.Width / oSlide.Height) * photoHeight);
oSlide.Height = photoHeight;
}
}

ssSlideTotal = ssSlides.push(oSlide);
}

ssSlideTotal -= 1;

if (randomSlides)
{
ssSlides.shift();
ssSlides.shuffle();
ssSlides.unshift(0);
}

if (quickStart)
ssSlideTimer = (slideDuration * 1000);

ssPrepSlide(1);
window.setTimeout("ssPrepSlide(2);", 0);
window.setTimeout("ssPrepSlide(ssSlideTotal);", 0);

if (slideshowType == SLIDE_SHOW)
ssPlaySlideshow();
else
ssSlideSwap(1);
}


function ssPauseSlideshow()
{
window.clearTimeout(ssTimerId);
ssTimerId = null;
}


function ssResumeSlideshow()
{
if (!ssTimerId)
ssTimerId = window.setTimeout("ssPlaySlideshow()", 10);
}


function ssPrepSlide(prep)
{
if (ssSlides[prep].Loaded == false)
{
ssSlides[prep].Image = new Image();
ssSlides[prep].Image.src = ssSlides[prep].File;
ssSlides[prep].Loaded = true;
}
}


function ssMoveSlide(i) {
ssSlideTimer = 0;
ssFadeTimer = 100;
ssTransition(ssFadeTimer);
ssFade = "out";
ssSlideSwap(i);
}


function ssPlaySlideshow()
{
if (ssSlideTimer >= (slideDuration * 1000))
{
if (ssFade == 'out')
ssTransition(ssFadeTimer -= 10);

if (ssFadeTimer == 0)
{
ssSlideSwap(1);
ssFade = 'in';
}

if (ssFade == 'in')
ssTransition(ssFadeTimer += 10);

if (ssFadeTimer == 100)
{
ssSlideTimer = 0;
ssFade = 'out';
}
}
else
ssSlideTimer += 10;

ssTimerId = window.setTimeout("ssPlaySlideshow()", 10);
}


function ssTransition(opacity)
{
if (showSlideTransition)
{
if (opacity != 100)
sSlide.style.opacity = (opacity / 100);

// one case where mozilla sucks: the image will flash if you turn opacity up to 1 suddenly
else
sSlide.style.opacity = (.99);

// only affects Win IE
sSlide.style.filter = 'alpha(opacity=' + opacity + ')';

if (sCaption) {
sCaption.style.opacity = sSlide.style.opacity;
sCaption.style.filter = sSlide.style.filter;
}
}
}


function ssSlideSwap(i)
{
var newSlide = ssOldSlide + i;

if (newSlide > ssSlideTotal)
newSlide = 1;

if (newSlide < 1)
newSlide = ssSlideTotal;

if (ssSlides[newSlide].Loaded != false)
{
document.images['ssSlide'].src = blank.src;
sSlide.style.backgroundImage = 'url(' + ssSlides[newSlide].File + ')';
if (resizeToPhoto)
{
document.images['ssSlide'].height = ssSlides[newSlide].Height;
document.images['ssSlide'].width = ssSlides[newSlide].Width;
}

if (slidesClickable)
ssAddSlideClick(ssSlides[newSlide].Gallery);

if (slideCaptions)
document.getElementById('ssCaption').innerHTML = ssSlides[newSlide].Caption;

ssPrepSlide(newSlide < ssSlideTotal ? newSlide + i : 1);
ssOldSlide = newSlide;
}
else
{
ssPrepSlide(newSlide);
ssSlideSwap(i);
}
}


function ssAddSlideClick(sUrl) {
addEvent(sSlide, 'click', function(){location.href=sUrl;});
}


Array.prototype.shuffle = function()
{
var len = this.length;
var rand, temp, i;

for (i = 0; i < len; i++)
{
rand = Math.floor(Math.random()*len);
temp = this[i];
this[i] = this[rand];
this[rand] = temp;
}
}


function pauseSlideshow()
{
document.getElementById('ssPause').style.display = "none";
document.getElementById('ssPlay').style.display = "inline";
ssPauseSlideshow();
}


function resumeSlideshow()
{
document.getElementById('ssPause').style.display = "inline";
document.getElementById('ssPlay').style.display = "none";
ssResumeSlideshow();
}


function prevSlide()
{
pauseSlideshow();
ssMoveSlide(-1);
}


function nextSlide()
{
pauseSlideshow();
ssMoveSlide(1);
}


function getCookie(name) {
var start = document.cookie.indexOf(name + "=");
var len = start + name.length + 1;

if ((!start) && (name != document.cookie.substring(0, name.length)))
return null;

if (start == -1)
return null;

var end = document.cookie.indexOf(";", len);

if (end == -1)
end = document.cookie.length;

return unescape(document.cookie.substring(len, end));
}


function deleteCookie(name, path, domain) {
if (getCookie(name))
document.cookie = name + "=" + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

stephenbruno
Jan-02-2008, 03:20 PM
very wise, thanks again for doing this

Cool.

I'm going to copy your old code here in case I make a booboo

.cartbuttons .title {color:red;}

#ssSlide {height: 500px;}


#cobrand_footer .nav {color: #242af2;}

homepage h1 {
color: #FF1493;
font-size: 120%;
font-family: Comic Sans MS, verdana, tahoma;
font-weight: normal;
}




#myHeader {
text-align: center;
margin: 10px auto 20px;
color: #ccc;
font-size: 300%;
font-family: Comic Sans MS, verdana;
}



#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li {
display: inline;
}

#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #036;
}

#navcontainer ul li a:hover {
color: #fff;
background-color: #369;
}


.homepage #categoriesBox {display: none;}


body {
opacity: 1;
}

#bioBox .photo {
display: none;
}

#userBio {
text-align: center;
}


#navcontainer ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li {
display: inline;
}

#navcontainer ul li a {
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #000;
}

#navcontainer ul li a:hover {
color: #fff;
background-color: #b80;
}
#ssControl {padding: 15px; text-align: center;}

.ssBtn {outline: none;}

.ssBtn img {height: 20px; width: 20px;}

#ssPlay {display: none;}

#ssPrev img {background-image:
url(/photos/187973629-O.png);
_background: none; background-repeat: no-repeat;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enable d=true,
sizingMethod=scale,
src='/http://stephenbrunophotography.smugmug.com/photos/187973629-O.png');}


#ssNext img {background-image:
url(/photos/187973609-O.png);
_background: none; background-repeat: no-repeat;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enable d=true,
sizingMethod=scale,
src='/http://stephenbrunophotography.smugmug.com/photos/187973609-O.png');}

#ssPlay img {background-image:
url(/photos/187973627-O.png);
_background: none; background-repeat: no-repeat;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enable d=true,
sizingMethod=scale,
src='/http://stephenbrunophotography.smugmug.com/photos/187973627-O.png');}

#ssPause img {background-image:
url(/photos/187973618-O.png);
_background:none; background-repeat: no-repeat;
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enable d=true,
sizingMethod=scale,
src='/http://stephenbrunophotography.smugmug.com/photos/187973618-O.png');}

gallery_1790400 .boxTop .title {color: #ccff99;}
.gallery_1790400 .boxBottom .foreground {color: #E5FFCB;}

.gallery_1790400 .boxTop {
color: #ccff99;
background-color: #454545;
border: solid 1px #ccff99;}

.gallery_1790400 .boxBottom {
background-color: #2d2d2d;
border: solid 1px #ccff99;}



#my_banner {
width: 750px;
height: 100px;
margin: 0 auto;
background: url(http://StephenBrunoPhotography.smugmug.com/photos/124731668-L.jpg.
) no-repeat;
}

#userName {
display: none;
}

#userHome {
display: none;
}
#SBPheader {display: none;}
.homepage #SBPheader {display: block;}

#bioBox {background:transparent;}


#bioBox {text-align: center;} /* For slideshow */

#galleriesBox .title {display: none;}


#navcontainer {display: block;}


.categoriesBox .boxTop { display: none; }


.gallery_1790400 .pageNav {display: none;}




.miniBox {width:122px; text-align:center; height:210px; margin:0 28px;}
.miniBox .photo {float:none; width:122px; height:auto; _height:1px;}
.miniBox .albumTitle {width:122px;}
.miniBox .description {width:122px;}
.miniBox .updated {width:122px;}

.loggedIn .miniBox {height:auto; min-height:300px;}
.loggedIn .miniBox .smbuttons {margin:0 auto; width:122px;}
.loggedIn .miniBox input {width:122px;}
.loggedIn .miniBox textarea {width:112px;}

.boxBottom .albumLarge {width:192px; height:350px; text-align:center; margin:0 24px;}
.albumLarge .photoLarge {float:none; width:192px; height:auto; _height:1px;}
.albumLarge .albumTitle {width:192px;}
.albumLarge .description {width:192px;}
.albumLarge .updated {width:192px;}

.loggedIn .boxBottom .albumLarge {height:auto; min-height:450px;}
.loggedIn .albumLarge .smbuttons {margin:0 auto; width:192px;}
.loggedIn .albumLarge input {width:192px;}
.loggedIn .albumLarge textarea {width:182px;}





body {
background-attachment: fixed;
background-image:
url(http://stephenbrunophotography.smugmug.com/gallery/1806373);
background-repeat: no-repeat;
background-position: right bottom;
}



.loggedIn .homepage #categoriesBox {display: block;}


body {
background-attachment: fixed;
background-image:
url(http://stephenbrunophotography.smugmug.com/gallery/1951058);
background-repeat: no-repeat;
background-position: center center;
}

Body { background-image: url(stephenbrunophotography.smugmug.com/gallery/1951058); }


function createSWF( w, h, params) {
var args = "";
for (var i in params) {
args += i + "=" + params[i] + "&amp;";
}
document.writeln('<object width="100%" height="100%" align="middle">'+ '<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'"/>'+ '<param name="wmode" value="transparent" />'+ '<embed src="http://www.smugmug.com/ria/ShizamSlides-2007091201.swf?'+args+'" wmode="transparent" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all"/></object>');
return 1;
}


SM.PhotoBar.config.position = 'bottom';

function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_1790400"))
{
var objElement = YD.get("comment")
if (objElement != null)
{
var str = new String(objElement.innerHTML);
str = str.replace(/\gallery/gi, 'guestbook');
objElement.innerHTML = str;
}
}
}

YE.onAvailable("comment", ModifyText);


rightClickWarning = "All photos are property of Stephen Bruno Photography. All rights reserved. Unauthorized use is prohibited.";



function AddReferralCode() {
var footerDiv = YD.get("footer");
if (footerDiv) {
var links = footerDiv.getElementsByTagName("A");
if (links && (links.length != 0)) {
var smugLink = links.item(0);
smugLink.href = "http://www.smugmug.com/?referrer=bzHQPJ7IhCfbU";
}
}
}
YE.onAvailable('footer', AddReferralCode);

function journal_entry_s_to_m(div) {
var imgs = div.getElementsByTagName('IMG');
var re = /(http:\/\/[^\/]*\/photos\/\d+-)S.jpg/
for(var i=0; i<imgs.length; i++) {
if(re.test(imgs[i].src)) {
imgs[i].src=RegExp.$1+'M.jpg';
imgs[i].height = imgs[i].height * 1.5;
imgs[i].width = imgs[i].width * 1.5;
}
}
}
var divs = document.getElementsByTagName('DIV');
for (var i=0; i<divs.length; i++) {
if (divs[i].className=='journal_entry') {
journal_entry_s_to_m(divs[i]);
}
}


/*=========================*/
/*== SLIDE SHOW ==*/
/*== version 0.56 ==*/
/*== Updated 03 May 2006 ==*/
/*=========================*/
var SLIDE_SHOW = 0;
var RANDOM_PHOTO = 1;
var slideshowContainer;
var sSlide;
var sCaption;
var ssSlides;
var ssSlideTotal;
var ssSlideTimer;
var ssOldSlide;
var ssFadeTimer;
var ssFade;
var ssTimerId;
var blank;


function PrepSlideEnvironment()
{
tmpCookie = getCookie("Template");

blank = new Image();
blank.src = "/img/spacer.gif";

if (typeof(slideshowType) == "undefined" || (slideshowType != SLIDE_SHOW && slideshowType != RANDOM_PHOTO))
slideshowType = SLIDE_SHOW;

if (slideshowType == RANDOM_PHOTO)
randomSlides = true;

if (typeof(slideshowContainerId) == "undefined")
return false
else if (typeof(slideshowContainerId) == "string")
slideshowContainer = document.getElementById(slideshowContainerId);

if (!slideshowContainer)
return false;

if (typeof(slideshowUrl) == "undefined" || typeof(slideshowUrl) != "string")
return false;
else
slideshowUrl = /(?:http:\/\/[^\/]+)?(\/\S+)/.exec(slideshowUrl)[1];

if (/\/gallery\/[0-9]+/.test(slideshowUrl))
slideSourceIsGallery = true;
else
slideSourceIsGallery = false;

if (typeof(slideHeight) == "undefined" || isNaN(slideHeight))
slideHeight = "550";

if (typeof(slideWidth) == "undefined" || isNaN(slideWidth))
slideWidth = "750";

if (typeof(photoHeight) == "undefined" || isNaN(photoHeight))
photoHeight = slideHeight;

if (typeof(photoWidth) == "undefined" || isNaN(photoWidth))
photoWidth = slideWidth;

if (typeof(slideDuration) == "undefined" || isNaN(slideDuration))
slideDuration = 85;

if (typeof(firstSlideUrl) == "undefined" || typeof(firstSlideUrl) != "string")
firstSlideUrl = blank.src;

if (typeof(showSlideTransition) == "undefined" || typeof(showSlideTransition) != "boolean")
showSlideTransition = true;

if (typeof(resizeToPhoto) == "undefined" || typeof(resizeToPhoto) != "boolean")
resizeToPhoto = true;

if (typeof(quickStart) == "undefined" || typeof(quickStart) != "boolean")
quickStart = true;

if (typeof(randomSlides) == "undefined" || typeof(randomSlides) != "boolean")
randomSlides = false;

if (typeof(slideControls) == "undefined" || typeof(slideControls) != "boolean")
slideControls = false;

if (typeof(slideCaptions) == "undefined" || typeof(slideCaptions) != "boolean")
slideCaptions = false;

if (typeof(slidesClickable) == "undefined" || typeof(slidesClickable) != "boolean")
slidesClickable = false;

return true;
}


function loadSlideshow()
{
if (!PrepSlideEnvironment())
return false;

slideshowContainer.innerHTML = '<img src="http://www.smugmug.com/img/spacer.gif" alt="" id="ssSlide" height="' + slideHeight + '" width="' + slideWidth + '" style="opacity: .99; background-image: url(' + firstSlideUrl + '); background-repeat: no-repeat; background-position: center;" />';

if (slideCaptions)
slideshowContainer.innerHTML += '<div id="ssCaption"></div>';

if (slideControls)
slideshowContainer.innerHTML += '<div id="ssControl"><a title="Previous Slide" id="ssPrev" class="ssBtn" href="javascript: void(0);" onclick="prevSlide();"><img src="/img/spacer.gif" border="0" /></a><a title="Next Slide" id="ssNext" class="ssBtn" href="javascript: void(0);" onclick="nextSlide();"><img src="/img/spacer.gif" border="0" /></a><a title="Pause Slideshow" id="ssPause" class="ssBtn" href="javascript: void(0);" onclick="pauseSlideshow();"><img src="/img/spacer.gif" border="0" /></a><a title="Resume Slideshow" id="ssPlay" class="ssBtn" href="javascript: void(0);" onclick="resumeSlideshow();"><img src="/img/spacer.gif" border="0" /></a></div>';

sSlide = document.getElementById('ssSlide');
sCaption = document.getElementById('ssCaption');

if (slidesClickable) {
sSlide.style.cursor = 'pointer';

if (firstSlideUrl != blank.src)
ssAddSlideClick(slideshowUrl);
}

ssSlides = new Array(null);
ssSlideTotal = 0;
ssSlideTimer = 0;
ssOldSlide = 0;
ssFadeTimer = 100;
ssFade = "out";

if (slideSourceIsGallery)
ajax_query(slideshowHandler, '/photos/sspopup.mg?AlbumID=' + /\/gallery\/([0-9]+)/.exec(slideshowUrl)[1], null, true);
else {
var postArray = new Array();
postArray['TemplateID'] = '8';
postArray['origin'] = slideshowUrl;
ajax_query(slideshowHandler, '/homepage/templatechange.mg', postArray, true);
}
}


function slideshowHandler(response)
{
if (!slideSourceIsGallery) {
if (tmpCookie && tmpCookie != "") {
var postArray = new Array();
postArray['TemplateID'] = tmpCookie;
postArray['origin'] = slideshowUrl;
ajax_query(function(){}, '/homepage/templatechange.mg', postArray, true);
}
else
deleteCookie("Template", "/", "smugmug.com");
}

var re = /imageID\[\d+\] = "\d+";/g;
var re2 = /width\[\d+\] = "\d+";/g;
var re3 = /height\[\d+\] = "\d+";/g;
var re4 = /caption\[\d+\] = ".*";/g;

s = response.match(re);
w = response.match(re2);
h = response.match(re3);
c = response.match(re4);

var oSlide;

for (i = 0; i < s.length; i++)
{
oSlide = new Object;

temp = s[i].split(/"/);
oSlide.ImageId = temp[1];
oSlide.File = 'http://upload.smugmug.com/photos/toolthumbs.mg?ImageID=' + temp[1] + '&tool=slideshowXL&winHeight=' + photoHeight + '&winWidth=' + photoWidth;
oSlide.Gallery = slideshowUrl + '/1/' + oSlide.ImageId;

temp = h[i].split(/"/);
oSlide.Height = temp[1];

temp = w[i].split(/"/);
oSlide.Width = temp[1];

temp = c[i].split(/"/);
oSlide.Caption = temp[1];

oSlide.Loaded = false;

if ((oSlide.Width > photoWidth) || (oSlide.Height > photoHeight))
{
if (oSlide.Width >= oSlide.Height)
{
oSlide.Height = Math.round((oSlide.Height / oSlide.Width) * photoWidth);
oSlide.Width = photoWidth;
}
else
{
oSlide.Width = Math.round((oSlide.Width / oSlide.Height) * photoHeight);
oSlide.Height = photoHeight;
}
}

ssSlideTotal = ssSlides.push(oSlide);
}

ssSlideTotal -= 1;

if (randomSlides)
{
ssSlides.shift();
ssSlides.shuffle();
ssSlides.unshift(0);
}

if (quickStart)
ssSlideTimer = (slideDuration * 1000);

ssPrepSlide(1);
window.setTimeout("ssPrepSlide(2);", 0);
window.setTimeout("ssPrepSlide(ssSlideTotal);", 0);

if (slideshowType == SLIDE_SHOW)
ssPlaySlideshow();
else
ssSlideSwap(1);
}


function ssPauseSlideshow()
{
window.clearTimeout(ssTimerId);
ssTimerId = null;
}


function ssResumeSlideshow()
{
if (!ssTimerId)
ssTimerId = window.setTimeout("ssPlaySlideshow()", 10);
}


function ssPrepSlide(prep)
{
if (ssSlides[prep].Loaded == false)
{
ssSlides[prep].Image = new Image();
ssSlides[prep].Image.src = ssSlides[prep].File;
ssSlides[prep].Loaded = true;
}
}


function ssMoveSlide(i) {
ssSlideTimer = 0;
ssFadeTimer = 100;
ssTransition(ssFadeTimer);
ssFade = "out";
ssSlideSwap(i);
}


function ssPlaySlideshow()
{
if (ssSlideTimer >= (slideDuration * 1000))
{
if (ssFade == 'out')
ssTransition(ssFadeTimer -= 10);

if (ssFadeTimer == 0)
{
ssSlideSwap(1);
ssFade = 'in';
}

if (ssFade == 'in')
ssTransition(ssFadeTimer += 10);

if (ssFadeTimer == 100)
{
ssSlideTimer = 0;
ssFade = 'out';
}
}
else
ssSlideTimer += 10;

ssTimerId = window.setTimeout("ssPlaySlideshow()", 10);
}


function ssTransition(opacity)
{
if (showSlideTransition)
{
if (opacity != 100)
sSlide.style.opacity = (opacity / 100);

// one case where mozilla sucks: the image will flash if you turn opacity up to 1 suddenly
else
sSlide.style.opacity = (.99);

// only affects Win IE
sSlide.style.filter = 'alpha(opacity=' + opacity + ')';

if (sCaption) {
sCaption.style.opacity = sSlide.style.opacity;
sCaption.style.filter = sSlide.style.filter;
}
}
}


function ssSlideSwap(i)
{
var newSlide = ssOldSlide + i;

if (newSlide > ssSlideTotal)
newSlide = 1;

if (newSlide < 1)
newSlide = ssSlideTotal;

if (ssSlides[newSlide].Loaded != false)
{
document.images['ssSlide'].src = blank.src;
sSlide.style.backgroundImage = 'url(' + ssSlides[newSlide].File + ')';
if (resizeToPhoto)
{
document.images['ssSlide'].height = ssSlides[newSlide].Height;
document.images['ssSlide'].width = ssSlides[newSlide].Width;
}

if (slidesClickable)
ssAddSlideClick(ssSlides[newSlide].Gallery);

if (slideCaptions)
document.getElementById('ssCaption').innerHTML = ssSlides[newSlide].Caption;

ssPrepSlide(newSlide < ssSlideTotal ? newSlide + i : 1);
ssOldSlide = newSlide;
}
else
{
ssPrepSlide(newSlide);
ssSlideSwap(i);
}
}


function ssAddSlideClick(sUrl) {
addEvent(sSlide, 'click', function(){location.href=sUrl;});
}


Array.prototype.shuffle = function()
{
var len = this.length;
var rand, temp, i;

for (i = 0; i < len; i++)
{
rand = Math.floor(Math.random()*len);
temp = this[i];
this[i] = this[rand];
this[rand] = temp;
}
}


function pauseSlideshow()
{
document.getElementById('ssPause').style.display = "none";
document.getElementById('ssPlay').style.display = "inline";
ssPauseSlideshow();
}


function resumeSlideshow()
{
document.getElementById('ssPause').style.display = "inline";
document.getElementById('ssPlay').style.display = "none";
ssResumeSlideshow();
}


function prevSlide()
{
pauseSlideshow();
ssMoveSlide(-1);
}


function nextSlide()
{
pauseSlideshow();
ssMoveSlide(1);
}


function getCookie(name) {
var start = document.cookie.indexOf(name + "=");
var len = start + name.length + 1;

if ((!start) && (name != document.cookie.substring(0, name.length)))
return null;

if (start == -1)
return null;

var end = document.cookie.indexOf(";", len);

if (end == -1)
end = document.cookie.length;

return unescape(document.cookie.substring(len, end));
}


function deleteCookie(name, path, domain) {
if (getCookie(name))
document.cookie = name + "=" + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

function hasPath(sPath)
{
re = new RegExp("\/" + sPath + "(\/|$)");
return re.test(window.location)
}

ivar
Jan-02-2008, 03:28 PM
very wise, thanks again for doing thisYou're welcome :thumb

I think I fixed your code. Please have a look and make sure I didn't break anything.

I get no more errors at this time.

The slideshow still is a bit sluggish to get started, tbh. It may be related to the 700something photos in the slideshow gallery. Can you try a smaller gallery, see if that makes a difference? Let me know, please.

stephenbruno
Jan-02-2008, 04:12 PM
:clap :clap :clap I moved many of the images in the gallery and I'll move more next few days. It does seem better but still a little sluggish. Bus so much better. I will move more. How many in your slideshow? And thanks again.

You're welcome :thumb

I think I fixed your code. Please have a look and make sure I didn't break anything.

I get no more errors at this time.

The slideshow still is a bit sluggish to get started, tbh. It may be related to the 700something photos in the slideshow gallery. Can you try a smaller gallery, see if that makes a difference? Let me know, please.

stephenbruno
Jan-02-2008, 05:49 PM
I am wondering if anyone else has has a sluggish starting flash slideshow and how they fixed it...I am this far with great help but when soneone visits my home page they see the Flash slide show loading then nearly a minute later it opens up. A good way to drive folks away :) :(:

:clap :clap :clap I moved many of the images in the gallery and I'll move more next few days. It does seem better but still a little sluggish. Bus so much better. I will move more. How many in your slideshow? And thanks again.

stephenbruno
Jan-02-2008, 08:25 PM
The slideshow seems better but the Stephen Bruno Photography header turnd pink and smaller. I'd appreciate anyone's thoughts.

Thanks,

Stephen


I am wondering if anyone else has has a sluggish starting flash slideshow and how they fixed it...I am this far with great help but when soneone visits my home page they see the Flash slide show loading then nearly a minute later it opens up. A good way to drive folks away :) :(:

Allen
Jan-02-2008, 08:35 PM
The slideshow seems better but the Stephen Bruno Photography header turnd pink and smaller. I'd appreciate anyone's thoughts.

Thanks,

Stephen
Change to the size you want in this existing item in your CSS.

.homepage h1 {
color: #FF1493;
font-size: 250%;
font-family: "Comic Sans MS", verdana, tahoma;
font-weight: normal;
}

stephenbruno
Jan-02-2008, 08:39 PM
Thanks Allen. What Do you recommend I change them to, to have what I currently have as a header on all pages including the slideshow? I'd like a gold color.


Change to the size you want in this existing item in your CSS.

.homepage h1 {
color: #FF1493;
font-size: 250%;
font-family: "Comic Sans MS", verdana, tahoma;
font-weight: normal;
}

Allen
Jan-02-2008, 09:24 PM
Thanks Allen. What Do you recommend I change them to, to have what I currently have as a header on all pages including the slideshow? I'd like a gold color.
If you are referring the heading size 250%, 300% or so looks good. Change
the size until you like it.

stephenbruno
Jan-02-2008, 09:38 PM
Works well :clap Any idea what Gold color code is?

Thanks Allen. What Do you recommend I change them to, to have what I currently have as a header on all pages including the slideshow? I'd like a gold color.

Allen
Jan-02-2008, 09:40 PM
Works well :clap Any idea what Gold color code is?
Check here (http://www.december.com/html/spec/color.html) for colors.

stephenbruno
Jan-02-2008, 09:59 PM
That is great for the colors, thanks. Where in the CSS code do I change the color of the heading Stephen Bruno Photography? Thanks!

Check here (http://www.december.com/html/spec/color.html) for colors.

Allen
Jan-02-2008, 10:13 PM
That is great for the colors, thanks. Where in the CSS code do I change the color of the heading Stephen Bruno Photography? Thanks!
.homepage h1 {
color: #FF1493;
font-size: 250%;
font-family: "Comic Sans MS", verdana, tahoma;
font-weight: normal;
}

stephenbruno
Jan-02-2008, 10:19 PM
That only seems to add color to the navbar items but I can't find the title, Stephen Bruno Photopgraphy anywhere in the codes to change to a gold color. Any ideas, Allen?

.homepage h1 {
color: #FF1493;
font-size: 250%;
font-family: "Comic Sans MS", verdana, tahoma;
font-weight: normal;
}

Allen
Jan-02-2008, 10:52 PM
That only seems to add color to the navbar items but I can't find the title, Stephen Bruno Photopgraphy anywhere in the codes to change to a gold color. Any ideas, Allen?
Let's try a slightly different method.

In your header change this

<div align="center">
<h1>Stephen Bruno Photography</h1>
</div>

to this

<div id="myHeader">
Stephen Bruno Photography
</div>

In your CSS change this

/* -------------------------- */
/* --- THINGS ON HOMEPAGE --- */
/* -------------------------- */
homepage h1 {
color: #FF1493;
font-size: 250%;
font-family: "Comic Sans MS", verdana, tahoma;
font-weight: normal;
}

to this

/* -------------------------- */
/* --- THINGS ON HOMEPAGE --- */
/* -------------------------- */
#myHeader {
text-align: center;
color: #FF1493;
font-size: 300%;
font-family: "Comic Sans MS", verdana, tahoma;
font-weight: normal;
}

stephenbruno
Jan-02-2008, 11:06 PM
Can we change the pink to gold? :)

Let's try a slightly different method.

In your header change this

<div align="center">
<h1>Stephen Bruno Photography</h1>
</div>

to this

<div id="myHeader">
Stephen Bruno Photography
</div>

In your CSS change this

/* -------------------------- */
/* --- THINGS ON HOMEPAGE --- */
/* -------------------------- */
homepage h1 {
color: #FF1493;
font-size: 250%;
font-family: "Comic Sans MS", verdana, tahoma;
font-weight: normal;
}

to this

/* -------------------------- */
/* --- THINGS ON HOMEPAGE --- */
/* -------------------------- */
#myHeader {
text-align: center;
color: #FF1493;
font-size: 300%;
font-family: "Comic Sans MS", verdana, tahoma;
font-weight: normal;
}

stephenbruno
Jan-02-2008, 11:11 PM
With your help Allen, I have the gold, how do I find the codes for fonts?

Can we change the pink to gold? :)

Allen
Jan-02-2008, 11:32 PM
With your help Allen, I have the gold, how do I find the codes for fonts?
In post 38 there is a link to a site with font colors. Select one from there.

stephenbruno
Jan-02-2008, 11:34 PM
I have the color. Where do I get the codes for fonts?

In post 38 there is a link to a site with font colors. Select one from there.

Allen
Jan-02-2008, 11:37 PM
I have the color. Where do I get the codes for fonts?
Oh, fonts.:D
Try this site (http://typetester.maratz.com/).

stephenbruno
Jan-02-2008, 11:40 PM
Thanks for all your help today!!!


Oh, fonts.:D
Try this site (http://typetester.maratz.com/).