View Full Version : How To: JavaScript, Dynamic Behavior and other tips.
flyingdutchie
Sep-14-2005, 05:06 PM
This topic is for everyone who want to put some more dynamic behavior into your home- and gallery-pages. CSS can do a lot, but some true dynamic behavior can sometimes only be done through JavaScript. This topic will give some pointers and tips on how to use JavaScript in your smugmug pages. I will add more tips over time. I hope you find this topic usefull :D and don't hesitate to ask some questions!
flyingdutchie
Sep-14-2005, 05:07 PM
There are two ways of doing this.
1. You have another web-server on which you can put your javascript file.
This is the preferred method.
2. You have no access to another web-server.
For 1.
Suppose your server is called 'http://www.myserver.com' and your javascript file '/myscript.js'.
Go to 'Co-branding', and fill this into the 'header' field:
<script language="javascript" src="http://www.myserver.com/myscript.js."></script>
For 2.
Go to 'Co-branding', and fill this into the 'Javascript' field:
// My own script is below.
Mike Lane
Sep-14-2005, 05:08 PM
And that deserves a sticky:D
flyingdutchie
Sep-14-2005, 05:11 PM
In the co-branding's 'CSS' field i included an import statement that imports a CSS file that is not browser specific. E.g:
@import url(http://www.myserver.com/mysmugmug.css);
As you will find out by browsing messages in this forum, there are many browser-specific issues with CSS. Some solutions suggest to use CSS-hacks. E.g.:
.box {
height: 200px; /* 200px high according to CSS. */
_height: 204px; /* But needs to be 204 in IE. */
}
But what if you need one hack for IE5.5 and another one for IE6.0...?
I tried to solve this by importing CSS files that are specific for the browser that is used by the viewer. This can be done through JavaScript. The idea is to first figure out which browser is used (navigator.userAgent) and then, using this information, load the appropriate browser-specific CSS files (document.writeln("@import ....")). Take a look at the attached text file loadSpecificCSS.txt. This is JavaScript. It contains the function "includeBrowserCSS()". Call this function by adding this to the top of the 'header' field. E.g.:
<script language="javascript" src="http://www.myserver.com/myscript.js."></script>
<script language="javascript">
includeBrowserCSS();
</script>
(be sure that your version of the code in loadSpecificCSS.txt is included in 'myscript.js')
flyingdutchie
Sep-14-2005, 05:36 PM
IE supports expressions in your style definitions, allowing for dynamic CSS. These expressions can be written in JavaScript. A good example is the 'fix' for making min-height work in IE. In your IE specific CSS definitions, do this:
/*In non-IE css:*/
.myclass {
min-height: 270px;
}
/*In css for IE:*/
.myclass {
height: expression(this.scrollHeight < 270? "270px" : "auto" );
}
The above example only works in pixels (because scrollHeight returns a pixel value).
Another example would be: Any element with class 'myclass' should be the height of another html-element (hidden or visible) on your page. Let's say this other html-element has an id="test_height".
.myclass {
height: expression(""+document.getElementById('test_height').scrollHeig ht+"px");
}
devbobo
Sep-14-2005, 06:05 PM
Go to 'Co-branding', and fill this into the 'Javascript HTML >':
<script language="javascript">
// My own script is below.
</script>
dutchie,
if you are entering code into the 'Javascript HTML' section, the code doesn't need to be encapsulated in a script element.
Cheers,
David
devbobo
Sep-14-2005, 06:09 PM
Go to 'Co-branding', and fill this into the 'body tag >':
<script language="javascript" src="http://www.myserver.com/myscript.js."></script>
<body>
Alternate method for this...
Enter the following into the 'Javascript HTML' section...
</script>
<script language="javascript" src="http://www.myserver.com/myscript.js"/>
David
flyingdutchie
Sep-14-2005, 06:59 PM
dutchie,
if you are entering code into the 'Javascript HTML' section, the code doesn't need to be encapsulated in a script element.
Cheers,
David
Oops! Yep, you're right. It actually MUST not be encapsulated in a script element. :thumb
Mike Lane
Sep-14-2005, 07:42 PM
Oops! Yep, you're right. It actually MUST not be encapsulated in a script element. :thumb
If you get a correction like that can you do me a favor and correct the original post please? Thanks! :wink
flyingdutchie
Sep-23-2005, 04:39 PM
I have gotten requests to make code that creates my 'photo crawl' on my page (see http://flyingdutchie.smugmug.com (http://flyingdutchie.smugmug.com/)) available.
This message will discuss how i did this.
The general idea:
I added this HTML fragment to my header:
<div id="my_logo" align="left">
<div id="ml_top">Flying Dutchie's Photo Crawl</div>
<div class="ml_pic ml_separator"><div id="ml_1" class="ml_move"></div></div>
<div class="ml_pic ml_separator"><div id="ml_2" class="ml_move"></div></div>
<div class="ml_pic"><div id="ml_3" class="ml_move"></div></div>
<div class="ml_pic ml_hidden"><div id="ml_4" class="ml_move"></div></div>
</div>
- The #my_logo is the 'container' of the entire logo.
- The #ml_top is the caption above the photo crawl.
- Beneath the photo crawl, there are 4 DIVs of class .ml_pic. Three are visible, one is invisible. The 3 visible ones show three selected images and the invisible one is used to pre-load images so that the viewer get direct feedback when the picture in the invisible one is moved to one of the visible ones. The 3 visible ones are #ml_1, #ml_2 and #ml_3. The invisible one is #ml_4.
The invisible <DIV> is done by visibility: hidden;. This is done to instruct the browser to load the image from the web, although you won't see it. If its style would be display: none;, the browser will not load the image at all.
For correct positioning, this needs to be done:
1 #my_logo: height and width need to be set.
2 #ml_top: float is set to left (floats on the left of #my_logo) and width must be set as well.
3 .ml_pic: width and height are both set to at least 150px, since the thumbnail picture needs to fit. The style float is set to right, so that all pictures will attach themselves to the right of #my_logo. Note however, that because of float: right the first DIV contains #ml_4, then #ml_3, #ml_2 and the most right one contains #ml_1.
4 .ml_move: The position needs to be relative so that JavaScript can move them around. Set width and height to 100%, no padding, no margin, no border, so they'll fit inside a <DIV class="ml_pic"> really snuggly.
Moving the pictures:
Data:
a. You need an array of all your thumbnail images you want to show. Any side of a thumnail has a maximum length of 150px. The array contains at least 5 images...
b. Have a counter that serves as an index into this array, e.g. rotateCntr. It starts at 0.
Every 10 seconds do this:
1. Move the current pic in #ml_4 slowly into #ml_3:
- 1a. Make #ml_4 visible but set its left position to its width (152px) and set its width to 0.
- 1b. Increase the width of #ml_4 in steps from 0 to its original width (152px) until the entire image inside #ml_4 is visible.
- 1c. Hide #ml_4 again, set its left position back to 0px and its width back to 100%.
2. Show image rotateCntr in <DIV id="ml_1">, show image rotateCntr+1 in <DIV id="ml_2">, show image rotateCntr+2 in <DIV id="ml_3"> and show image rotateCntr+3 in <DIV id="ml_4">. This moves all images a spot to the right and loads a new image in the invisible #ml_4.
3. Increase rotateCntr by 1.
Here is sample code (css/javascript). I removed extraneous code from my CSS and JavaScript.
From the JavaScript, code is removed that uses cookies to remember the rotateCntr for the photocrawl.
Common CSS (note that some actual width and height values depend on your specific logo-image and homepage; these are just examples):
#my_logo {
background-image: url(http://you.smugmug.com/photos/yourimg.jpg);
background-repeat: no-repeat;
height: 180px;
width: 756px;
border-width: 0px;
margin-left: 4px;
margin-top: 0px;
pposition: relative;
}
#ml_top {
float: left;
height: 27px;
width: 463px;
margin-left: 292px;
color: white;
text-align: center;
font-size: 16pt;
font-family: Monotype Corsiva, Script, Georgia, Times New Roman, Times, serif;
background-color: #0162A3;
border: 1px solid #0162A3;
}
.ml_pic {
background-color: transparent;
float: right;
height: 151px;
width: 152px;
}
.ml_move {
position: relative;
width: 100%;
height: 100%;
background-color: white;
background-image: none; /* assigned by javascript. */
background-repeat: no-repeat;
background-position: center center;
margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
.ml_separator {
border-left: 3px groove #659ACE;
}
.ml_hidden {
background-color: transparent;
visibility: hidden;
}
CSS specific for all Internet Explorer versions:
#ml_top {
position: relative;
left: -292px; /* Same value as margin-left, but negative */
}
CSS specific for Internet Explorer 5.5 (but not for IE6.0!)
.ml_move {
width: 154px;
height: 153px;
}
You can look here http://www.dgrin.com/showpost.php?p=163741&postcount=4 to see how to add CSS for specific browsers/browser-versions without using so-called hacks.
JavaScript,
The 'doOnLoad()' must be executed just after the page has loaded: <body onload="doOnLoad();">
Call 'resetCrawl()' (using menu/onclick event/etc.) to reset the crawl back to the beginning.
var g_rotateCntr = 0;
var g_rotateStopped = false;
function doOnLoad()
{
doRotate();
incrRotateCntr();
window.setInterval("rotateLogoImgs();", 10000);
}
var g_logoImgs = new Array();
g_logoImgs[g_logoImgs.length] = "http://flyingdutchie.smugmug.com/photos/32754872-Th.jpg"; // Bell Lady
g_logoImgs[g_logoImgs.length] = "http://flyingdutchie.smugmug.com/photos/5326745-Th.jpg"; // Downtown Statue
g_logoImgs[g_logoImgs.length] = "http://flyingdutchie.smugmug.com/photos/14910982-Th.jpg"; // Hyannis Boat
g_logoImgs[g_logoImgs.length] = "http://flyingdutchie.smugmug.com/photos/18672452-Th.jpg"; // Hancock
g_logoImgs[g_logoImgs.length] = "http://flyingdutchie.smugmug.com/photos/29761507-Th.jpg"; // Girls downtown
//...
//...
//...
g_logoImgs[g_logoImgs.length] = "http://flyingdutchie.smugmug.com/photos/9011140-Th.jpg"; // Cristina Yotham
function incrRotateCntr()
{
// _setCookie("R_CNTR", g_rotateStopped ? "-"+g_rotateCntr : "+"+g_rotateCntr);
g_rotateCntr++;
}
function doRotate()
{
var div1 = document.getElementById("ml_1");
var div2 = document.getElementById("ml_2");
var div3 = document.getElementById("ml_3");
var div4 = document.getElementById("ml_4");
var aLen = g_logoImgs.length;
div1.style.backgroundImage="url("+ g_logoImgs[(0+g_rotateCntr)%aLen] +")";
div2.style.backgroundImage="url("+ g_logoImgs[(1+g_rotateCntr)%aLen] +")";
div3.style.backgroundImage="url("+ g_logoImgs[(2+g_rotateCntr)%aLen] +")";
div4.style.backgroundImage="url("+ g_logoImgs[(3+g_rotateCntr)%aLen] +")";
}
function rotateLogoImgs()
{
if (g_rotateStopped)
return;
var div4 = document.getElementById("ml_4");
var width = div4.scrollWidth;
div4.style.left = width+"px";
div4.style.width = 0+"px";
div4.style.visibility = "visible";
window.setTimeout("rotSmooth(0,15,"+width+");", 100);
}
function rotSmooth(pCntr, pMax, pWidth)
{
var div4 = document.getElementById("ml_4");
if (pCntr < pMax)
{
//div4.style.width = ( (pWidth*Math.pow(pCntr,2))/(Math.pow(pMax,2)) )+"px";
div4.style.width = ( (pWidth*pCntr)/pMax )+"px";
window.setTimeout("rotSmooth("+(pCntr+1)+","+pMax+","+pWidth+");", 100);
return;
}
div4.style.visibility = "hidden";
div4.style.left = 0+"px";
div4.style.width = "100%";
doRotate();
incrRotateCntr();
}
function resetCrawl()
{
g_rotateCntr = 0;
doRotate();
incrRotateCntr();
}
If you have questions, do hestitate to ask.
Notes
Browser compatibility:
Works fine on:
FireFox 1+
IE5.5+
Netscape 7.0+
Opera 7.5+
Mozilla 1.4+
Not tested on:
Safari
Will not work on:
IE5.5 on Mac.
Possible issues/Notes:
My logo is embedded in my page like this:
<body ...>
...
<div id="my_main"> <!-- its width is set to 760px -->
<div id="my_logo"> .. ..
...
</div>
<div id="my_container> <!-- its width is set to 100% -->
THE REST OF THE PAGE
</div>
</div>
...
...
<body>
Successes:
- DigitalDaze has succesfully implemented the crawl as well:
http://digitaldaze.smugmug.com
It looks Great! :thumb
-- Anton.
Nikolai
Sep-23-2005, 08:52 PM
very creative!:thumb
Mike Lane
Sep-23-2005, 09:08 PM
Yup! I'm curious, why not add this to your sticky javascript thread?
I'll probably merge it later on.
flyingdutchie
Sep-23-2005, 09:32 PM
Yup! I'm curious, why not add this to your sticky javascript thread?
I'll probably merge it later on.Good idea; if you can merge it, that would be great!
Fine Bottled Water
Sep-26-2005, 02:09 PM
Doh - I just noticed this after posting a thread about JavaScript.
Hello all.
I've been using the regular HTML version of the Site Meter (http://www.sitemeter.com/) counter for a few months now, and I'm very happy with it - except that the HTML version doesn't track referring URLs. To track referring URLs, you have to use the java script version of Site Meter.
The Site Meter website doesn't provide specific code to use for smugmug, although they do for many other blogger/photo/website services. I've attempted to use some of the code they provide for other sites, but it either doesn't work or breaks the browser.
I currently have this code (the HTML version of Site Meter) inserted in my footer HTML:
<div align="center">
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<a href="http://s11.sitemeter.com/stats.asp?site=s11fatdave" target="_top">
<img src="http://s11.sitemeter.com/meter.asp?site=s11fatdave" alt="Site Meter" border="0"/></a>
<!--WEBBOT bot="HTMLMarkup" Endspan --></div>
This is the javascript they provide as blanket, basic code (i.e., not configured to a particular website/service). I've tried this, but it doesn't work:
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<script type="text/javascript" language="JavaScript">var site="s11fatdave"</script>
<script type="text/javascript" language="JavaScript1.2" src="http://s11.sitemeter.com/js/counter.js?site=s11fatdave">
</script>
<noscript>
<a href="http://s11.sitemeter.com/stats.asp?site=s11fatdave" target="_top">
<img src="http://s11.sitemeter.com/meter.asp?site=s11fatdave" alt="Site Meter" border="0"/></a>
</noscript>
<!-- Copyright (c)2005 Site Meter -->
<!--WEBBOT bot="HTMLMarkup" Endspan -->
Does anyone have any success with using the javascript version of Site Meter? If so, could you help? I'm relatively clueless when it comes to code, so be gentle. :):
Thanks!
Fine Bottled Water
Sep-29-2005, 08:14 AM
Bump. No one knows?
flyingdutchie
Oct-03-2005, 10:02 AM
Bump. No one knows?
Have you tried it by adding this JavaScript to your site through your co-branding settings? If so, did it work?
-- Anton.
Fine Bottled Water
Oct-04-2005, 02:23 PM
Yes. I tried the code I had posted in my previous post, and it does not work.
This code is what I've tried:
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<script type="text/javascript" language="JavaScript">var site="s11fatdave"</script>
<script type="text/javascript" language="JavaScript1.2" src="http://s11.sitemeter.com/js/counter.js?site=s11fatdave">
</script>
<noscript>
<a href="http://s11.sitemeter.com/stats.asp?site=s11fatdave" target="_top">
<img src="http://s11.sitemeter.com/meter.asp?site=s11fatdave" alt="Site Meter" border="0"/></a>
</noscript>
<!-- Copyright (c)2005 Site Meter -->
<!--WEBBOT bot="HTMLMarkup" Endspan -->
flyingdutchie
Oct-04-2005, 04:13 PM
Yes. I tried the code I had posted in my previous post, and it does not work.
This code is what I've tried:
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<script type="text/javascript" language="JavaScript">var site="s11fatdave"</script>
<script type="text/javascript" language="JavaScript1.2" src="http://s11.sitemeter.com/js/counter.js?site=s11fatdave">
</script>
<noscript>
<a href="http://s11.sitemeter.com/stats.asp?site=s11fatdave" target="_top">
<img src="http://s11.sitemeter.com/meter.asp?site=s11fatdave" alt="Site Meter" border="0"/></a>
</noscript>
<!-- Copyright (c)2005 Site Meter -->
<!--WEBBOT bot="HTMLMarkup" Endspan -->
I tried to connect to s11.sitemeter.com. I did not expect any useable result back (since the connection i tried to make is not part of a browser's session), but i did get this result:
graburl http://s11.sitemeter.com/
returns this answer:
host "s11.sitemeter.com" refused "http" connection on port 80
They may have some weird safety-net on their host, but this message signifies that it does not even get through! This is really wrong!
What i try to say is that your url may be wrong; the script might be OK but your site-meter server is just not reachable.
Are you sure that this url "http://s11.sitemeter.com/stats.asp?site=s11fatdave" is OK??
I tried an example from another web-site. What this example uses is this URL:
http://sm9.sitemeter.com/js/counter.js (http://sm9.sitemeter.com/js/counter.js).
Instead of an error-message, i get a result back! Although the result is not really usable, the sitemeter server is at least responding. Try to click on the above URL and select 'Open'... you get a nice piece of javascript! It works!
It seems that their server s11 is down or at least refusing any connection. Their sm9 server works fine.
-- Anton
Fine Bottled Water
Oct-04-2005, 07:27 PM
Yeah, the URL is correct. It points to the specific page that, I guess, collects the data on my site.
E.g., this is the code on the HTML version of the Sitemeter, which is working fine:
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<a href="http://s11.sitemeter.com/stats.asp?site=s11fatdave" target="_top">
<img src="http://s11.sitemeter.com/meter.asp?site=s11fatdave" alt="Site Meter" border="0"/></a>
<!--WEBBOT bot="HTMLMarkup" Endspan -->
flyingdutchie
Oct-04-2005, 07:45 PM
Yeah, the URL is correct. It points to the specific page that, I guess, collects the data on my site.
E.g., this is the code on the HTML version of the Sitemeter, which is working fine:
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<a href="http://s11.sitemeter.com/stats.asp?site=s11fatdave" target="_top">
<img src="http://s11.sitemeter.com/meter.asp?site=s11fatdave" alt="Site Meter" border="0"/></a>
<!--WEBBOT bot="HTMLMarkup" Endspan -->
The URL is not correct, at least not here in Boston.
Try to open this url (http://s11.sitemeter.com/stats.asp?site=s11fatdave) in your browser. What happens in your browser when you do this?
(When i try to open this URL in my browser, my browser says "Can not find server". When i use my tool 'graburl', it says that a connection on port 80 is refused. In short, the URL is incorrect. That's why your sitemeter does not work. When i go to your smugmug-page, your site-counter images don't show up either. They are reported as broken/unlinked images)
-- Anton.
Mike Lane
Oct-04-2005, 10:19 PM
The URL is not correct, at least not here in Boston.
Try to open this url (http://s11.sitemeter.com/stats.asp?site=s11fatdave) in your browser. What happens in your browser when you do this?
(When i try to open this URL in my browser, my browser says "Can not find server". When i use my tool 'graburl', it says that a connection on port 80 is refused. In short, the URL is incorrect. That's why your sitemeter does not work. When i go to your smugmug-page, your site-counter images don't show up either. They are reported as broken/unlinked images)
-- Anton.
That url works for me.
flyingdutchie
Oct-05-2005, 05:53 AM
That url works for me.
Mike, I read your message, and was really surprised at first.
But i clicked it just a minute ago, and i got a proper connection with good results. It was not working well last night and the days before.
So, i guess the s11 server was down for a while or misconfigured (refusing connections to port 80). It's up and running. Also, i went to your http://fatdave.smugmug.com site and the image of the SiteMeter does now show up correctly.
F.B.W., does your sitemeter really work now?
-- Anton.
flyingdutchie
Oct-05-2005, 05:56 AM
That url works for me.
Mike,
Thanks for pointing me to the StatCounter.com site. It is a great stat-counter. Lots of details for free! :thumb
-- Anton.
Fine Bottled Water
Oct-05-2005, 06:26 AM
Anton,
After tinkering with it all last night, I was able to get it to work! I appreciate your effort in helping me. :thumb
flyingdutchie
Oct-05-2005, 06:32 AM
Anton,
After tinkering with it all last night, I was able to get it to work! I appreciate your effort in helping me. :thumb
You're welcome.
I'm happy to know it all works for you now. :clap
Although, i'm not sure if that was due to my help... hehehehe ... it seems that your SiteMeter server (s11) just started working by your tinkering or by SiteMeter's tinkering .... hehehehe :)
Greg N
Nov-25-2005, 09:27 AM
:scratch Hi everyone,
I am looking for a little help with some Java Script. I am new to smugmug and have really enjoyed putting my site together. You can find my home page at www.speed-shot.com (http://www.speed-shot.com/) . So far I have added a nav bar and included a large picture in my bio area. I would like to have this picture change as the mouse pointer passes over the links in the nav bar. I found a tutorial for a Image Swap Java Script at - http://pixelz.amhosting.com/toolbox/image_swap.html (http://pixelz.amhosting.com/toolbox/image_swap.html) .
What I need to know is-
1) Can I use this script in smugmug?
2) What is the proper location for the Java Script code?
The tutorial has you placing the code in the <HEAD> section HTML file.
Thanks for the help,
Greg N
Mike Lane
Nov-25-2005, 10:52 AM
:scratch Hi everyone,
I am looking for a little help with some Java Script. I am new to smugmug and have really enjoyed putting my site together. You can find my home page at www.speed-shot.com (http://www.speed-shot.com/) . So far I have added a nav bar and included a large picture in my bio area. I would like to have this picture change as the mouse pointer passes over the links in the nav bar. I found a tutorial for a Image Swap Java Script at - http://pixelz.amhosting.com/toolbox/image_swap.html (http://pixelz.amhosting.com/toolbox/image_swap.html) .
What I need to know is-
1) Can I use this script in smugmug?
2) What is the proper location for the Java Script code?
The tutorial has you placing the code in the <HEAD> section HTML file.
Thanks for the help,
Greg N
I used an image swap script on the splash page of www.photoscapedesign.com so you most certainly can use that kind of javascript there.
Simply put the javascript in the javascript box :thumb
DigitalFocus
Dec-09-2005, 10:01 PM
I have gotten requests to make code that creates my 'photo crawl' on my page (see http://flyingdutchie.smugmug.com (http://flyingdutchie.smugmug.com/)) available.
looks great but I think I am permenantly crosseyed after tyring to figure that out .... think i will keep it simple for now.
cheers:scratch
jmiller
Dec-30-2005, 02:46 PM
There are two ways of doing this.
1. You have another web-server on which you can put your javascript file.
This is the preferred method.
2. You have no access to another web-server.
For 1.
Suppose your server is called 'http://www.myserver.com' and your javascript file '/myscript.js'.
Go to 'Co-branding', and fill this into the 'header' field:
<script language="javascript" src="http://www.myserver.com/myscript.js."></script>
For 2.
Go to 'Co-branding', and fill this into the 'Javascript' field:
// My own script is below.
I am trying to add a slideshow to an html page that I created. The page shows up just fine, but the images don't change. I've used this same script in other (non SmugMug) websites, and it works fine. In fact, the script works fine when I just take the text I've put in the page and save it in notepad as a .htm file. I tried putting the script into the 'Javascript' field in 'Co-branding', but that didn't help. This is the page:
http://mike-reed-photography.smugmug.com/gallery/1078862
I've attached a .txt file showing what I've put in the 'Javascript' field. Any and all suggestions (especially solutions!) will be appreciated!
J Miller
flyingdutchie
Dec-30-2005, 03:39 PM
I am trying to add a slideshow to an html page that I created. The page shows up just fine, but the images don't change. I've used this same script in other (non SmugMug) websites, and it works fine. In fact, the script works fine when I just take the text I've put in the page and save it in notepad as a .htm file. I tried putting the script into the 'Javascript' field in 'Co-branding', but that didn't help. This is the page:
http://mike-reed-photography.smugmug.com/gallery/1078862
I've attached a .txt file showing what I've put in the 'Javascript' field. Any and all suggestions (especially solutions!) will be appreciated!
J Miller
One small problem i see is that most of the script is embedded inside the content of the <meta content="Picture .................. "/> tag. How did this happen. It does not hurt anything, but i think it should not be there :)
Second problem:
You have two copies of your script: One in the main HTML page, between a <SCRIPT> and a </SCRIPT> tag, the other in the file user_Mike-Reed-Photography.js. That is one too many. Fix: Remove the script from the main HTML page.
Third problem:
While copying and pasting, all the '+' characters were replaced by spaces... this messes up the script and the script becomes invalid. Make sure that the script is OK. This is the main page's HTML source. I removed this copy of the script all together, so only the one in user_Mike-Reed-Photography.js is active. Fix: All ready done by removing the script from the main HTML page.
Fourth problem:
FireFox reports a problem that the variable 'L' has no properties. The javascript you copied is very hard to read (no indentations, meaningless variable names, etc)... i can not figure out what's really going on (as if someone did not want people to copy the script).
This seems to happen, because the statement floatSS(whereX,whereY,'FloatSlideShow').Fss(); is executed before the document has finished loading. The element with id 'FloatSlideShow' may not have been properly rendered yet. That's why L is null (and therefore has no properties). I fixed this by moving the last line within the 'runSlideShow()' function:
Change this:
function runSlideShow(){
if (document.all){
into:
function runSlideShow(){
floatSS(whereX,whereY,'FloatSlideShow').Fss();
if (document.all){
Fifth problem:
This is your body tag:
<BODY onload=" getTZ();">
Fix: This should be onload="runSlideShow();".
By doing these 4 fixes, i got your slideshow to run locally on my PC.
(edit: I attached the changed javascript contents)
-- Anton.
jmiller
Dec-31-2005, 12:53 PM
One small problem i see is that most of the script is embedded inside the content of the <meta content="Picture .................. "/> tag. How did this happen. It does not hurt anything, but i think it should not be there :)
Second problem:
You have two copies of your script: One in the main HTML page, between a <SCRIPT> and a </SCRIPT> tag, the other in the file user_Mike-Reed-Photography.js. That is one too many. Fix: Remove the script from the main HTML page.
Third problem:
While copying and pasting, all the '+' characters were replaced by spaces... this messes up the script and the script becomes invalid. Make sure that the script is OK. This is the main page's HTML source. I removed this copy of the script all together, so only the one in user_Mike-Reed-Photography.js is active. Fix: All ready done by removing the script from the main HTML page.
Fourth problem:
FireFox reports a problem that the variable 'L' has no properties. The javascript you copied is very hard to read (no indentations, meaningless variable names, etc)... i can not figure out what's really going on (as if someone did not want people to copy the script).
This seems to happen, because the statement floatSS(whereX,whereY,'FloatSlideShow').Fss(); is executed before the document has finished loading. The element with id 'FloatSlideShow' may not have been properly rendered yet. That's why L is null (and therefore has no properties). I fixed this by moving the last line within the 'runSlideShow()' function:
Change this:
function runSlideShow(){
if (document.all){
into:
function runSlideShow(){
floatSS(whereX,whereY,'FloatSlideShow').Fss();
if (document.all){
Fifth problem:
This is your body tag:
<BODY onload=" getTZ();">
Fix: This should be onload="runSlideShow();".
By doing these 4 fixes, i got your slideshow to run locally on my PC.
(edit: I attached the changed javascript contents)
-- Anton.
Thank You! Thank You! It works - and here is what I've discovered:
Problem 1 - Script in the <meta content="Picture .................. seems to have been caused by having the script in the main HTML page. When I removed it from there, problem 1 was solved.
Problem 2 - I took the script out of the main HTML page (which also solved problem 1.
Problems 3 and 4 - Although I've used this script before, I think - as you suggested - that it is basically a bad, funky script. I found a much simpler script, and that made ALL the difference!!
Problems 5 - I pasted the <BODY onload=" runSlideShow();"> tag into the body tag section in cobranding, and now it shows up where and how it should (along with the getTZ()).
I've attached the js that I used - revised to be used with SmugMug. Maybe someone else can save themselves about a gazillion hours of hair-pulling! Thanks again!
J Miller
flyingdutchie
Dec-31-2005, 01:24 PM
Thank You! Thank You! It works - and here is what I've discovered:
Problem 1 - Script in the <meta content="Picture .................. seems to have been caused by having the script in the main HTML page. When I removed it from there, problem 1 was solved.
Problem 2 - I took the script out of the main HTML page (which also solved problem 1.
Problems 3 and 4 - Although I've used this script before, I think - as you suggested - that it is basically a bad, funky script. I found a much simpler script, and that made ALL the difference!!
Problems 5 - I pasted the <BODY onload=" runSlideShow();"> tag into the body tag section in cobranding, and now it shows up where and how it should (along with the getTZ()).
I've attached the js that I used - revised to be used with SmugMug. Maybe someone else can save themselves about a gazillion hours of hair-pulling! Thanks again!
J Miller
You're welcome. :D
And have a great New Year!
-- Anton.
DodgeV83
Feb-02-2006, 11:31 AM
Is this still the best way to do this? I can't get it to work :(
I tried it on my homepage frelow.smugmug.com
Edit: Talking about the JS slideshow.
Is this still the best way to do this? I can't get it to work :(
I tried it on my homepage frelow.smugmug.com
Edit: Talking about the JS slideshow.
if you're talking about the slideshow...hold of a bit.
there is a new (http://bigwebguy.smugmug.com) hotness (http://www.moonriverphotography.com). i believe a howto will be along shortly.
DodgeV83
Feb-02-2006, 12:30 PM
if you're talking about the slideshow...hold of a bit.
there is a new (http://bigwebguy.smugmug.com) hotness (http://www.moonriverphotography.com). i believe a howto will be along shortly.
Oh comon! I see the code just tell me where to put it! :wink
Andy
Feb-02-2006, 12:48 PM
Oh comon! I see the code just tell me where to put it! :wink
Dodge, please be patient - it's not so simple and there are ways to muck things up. Remember, all of this is very advanced stuff, and it's only supported by the volunteers here. Let devbobo make up his "how to" and then you'll be able to try it, ok?
DodgeV83
Feb-02-2006, 01:36 PM
Dodge, please be patient - it's not so simple and there are ways to muck things up. Remember, all of this is very advanced stuff, and it's only supported by the volunteers here. Let devbobo make up his "how to" and then you'll be able to try it, ok?
I figured it out (tough love eh? :thumb), its really not hard to implement once you have the code, I'm sure devbobo is just too busy to write out instructions right now. I could tell how I did it if you won't get mad at me for doing so...
Andy
Feb-02-2006, 01:55 PM
I figured it out (tough love eh? :thumb), its really not hard to implement once you have the code, I'm sure devbobo is just too busy to write out instructions right now. I could tell how I did it if you won't get mad at me for doing so...
Heck no, we love self-supporting customizers - hey, now you can be on the support list for the next guy that wants to install the hack !!
:thumb and I saw your site. Nice!
DodgeV83
Feb-02-2006, 02:12 PM
Heck no, we love self-supporting customizers - hey, now you can be on the support list for the next guy that wants to install the hack !!
:thumb and I saw your site. Nice!
Thanks, but I won't post it just yet, I'll wait for Devbobo's tutorial (after all, its HIS code!). I've modified the code to do some cool things though, such as running a small slideshow at the buttom of everypage thats NOT the homepage. We'll see what else I can come up with.
Devbobo is THE BEST! :clap
juliank
Feb-03-2006, 11:36 AM
I need to try this also. Which code did you use. I see a little bit higher in this thread js_slideshow.txt with a script. Is it this one?
Thanks, but I won't post it just yet, I'll wait for Devbobo's tutorial (after all, its HIS code!). I've modified the code to do some cool things though, such as running a small slideshow at the buttom of everypage thats NOT the homepage. We'll see what else I can come up with.
Devbobo is THE BEST! :clap
DodgeV83
Feb-03-2006, 11:40 AM
I need to try this also. Which code did you use. I see a little bit higher in this thread js_slideshow.txt with a script. Is it this one?
No its not. You should just wait for Devbobo to write a tutorial.
juliank
Feb-04-2006, 06:20 AM
So ... where do I put the code?
No its not. You should just wait for Devbobo to write a tutorial.
So ... where do I put the code?
seriously, everyone just hold yer pants. the slideshow stuff is not complete yet. i would really suggest waiting until we post the tutorial...we'll be happy to help you after that.
until that time, you're on your own.
Andy
Feb-04-2006, 07:01 AM
seriously, everyone just hold yer pants. the slideshow stuff is not complete yet. i would really suggest waiting until we post the tutorial...we'll be happy to help you after that.
until that time, you're on your own.
:agree
juliank
Feb-04-2006, 07:03 AM
I understand ... bit in some ways it is silly.
I don't mind trying it on my own initially, but at least it would be nice to share some ideas where to start and where to put things. I thought this is part of this community ....
seriously, everyone just hold yer pants. the slideshow stuff is not complete yet. i would really suggest waiting until we post the tutorial...we'll be happy to help you after that.
until that time, you're on your own.
Andy
Feb-04-2006, 07:10 AM
I understand ... bit in some ways it is silly.
Hi Julian,
It is. But there are 100s who want this and only TWO who support by answering questions. You can see that they'll gee swamped if they start saying "use it" before they are ready with COMPLETE documentation on how to do it. And, a single place where they'll put the code, so that if they update or fix bugs, it's all in one spot.
Community - Devbobo and bwg embody the word :deal
flyingdutchie
Apr-04-2006, 06:49 PM
Hi everyone,
Here is sample code that retrieves the list of your popular photos and stores it into a JavaScript Array. Depending on your site, you can show this array in your logo, for example.
Note, this is for JavaScripters. You have to be somewhat versed in JavaScript. You'll have to know how to integrate this code into your own header/logo/banner. In my case that means updating the JavaScript array g_logoImgs.
var g_logoImgs = new Array();
g_logoImgs[g_logoImgs.length] = "/photos/1111111-Th.jpg"; // Bell Lady
g_logoImgs[g_logoImgs.length] = "/photos/2222222-Th.jpg"; // Downtown Statue
g_logoImgs[g_logoImgs.length] = "/photos/3333333-Th.jpg"; // Hyannis Boat
// etc...
// etc...
var g_popularList = null;
var g_listsMerged = false;
function getPopularList()
{
if (g_popularList)
return;
var list = document.getElementById("popularPhotosList");
if (!list)
{
var strList = _getCookie("T_popList");
if (strList && strList.length > 0)
g_popularList = strList.split(",");
return;
}
var imgs = list.getElementsByTagName("IMG");
if (!imgs || imgs.length == 0)
return null;
var i;
var ret = new Array();
for (i = 0; i < imgs.length; i++)
ret[ret.length] = imgs.src.replace(/Ti/, "Th").replace(/.*\/photos\//, "/photos/");
g_popularList = ret;
_setCookie("T_popList", ""+g_popularList);
}
function mergeLists()
{
if (g_listsMerged)
return;
if (!g_popularList)
return;
// Append popular list to end of g_logoImgs.
var i;
for (i = 0; i < g_popularList.length; i++)
{
g_logoImgs[g_logoImgs.length] = g_popularList;
}
g_listsMerged = true;
}
Then call this code to make it all happen (during a <body> onload event, for example).
getPopularList();
mergeLists();
Now the list of logo/banner images g_logoImgs is updated with the most popular images.
(PS: There are two other functions called by this code: _getCookie and _setCookie. I wrote my own, but i think that SmugMug already has some implementation of this)
renstar
Apr-09-2006, 10:12 AM
Hi all,
i'm working on something for my critique page and am looking to change the location of some of the elements. I'd like to do things like move the rating stars up to where the photoNav currently is, move the comments into the rightColumn, etc. I'm working on some custom navigation for the critiques and I think the layout would work better adjusted, but I want to be able to play with it and see first.
Javascript and all is not my forte (i usually do stuff with serverside scripting and what not, but that is not available here). Frankly, web programming is not my bag either, im more of a scientific computing type guy, but im not totally incompetant at it either. Ive tried messing with the appending children to elements and trying to copy other elements and all, but with no success.
Any pointers?
Thanks,
Russ
Andy
Apr-09-2006, 10:20 AM
Hi all,
i'm working on something for my critique page and am looking to change the location of some of the elements. I'd like to do things like move the rating stars up to where the photoNav currently is,
Any pointers?
Thanks,
Russ
You don't need JS to move the ratings stars:
mess around with the numbers in here
.critique #rating {
position: relative;
top: -520px;
right: -400px;
}
renstar
Apr-09-2006, 10:28 AM
You don't need JS to move the ratings stars:
mess around with the numbers in here
.critique #rating {
position: relative;
top: -520px;
right: -400px;
}
I've played with that, but just for the purposes of example, I put it in like you said. The problem is two fold. First, IE anf FF interpret that differently enough that what looks good while logged in in FF puts the stars over something in IE. Also, when resizing windows, their position doesnt stay relative to other elements. I'm using JS because i want to actually add elements to other divs so that they stay in the exact location relative to the other things in that element. For example, id like to make it stay right below the keywords list. I may want to associate with some other div, but for now id be satisfied with the rightColumn.
Edit:
Check that, I actually want to put them up where the <prev n out of X next> is and move the photoNav elsewhere, but have it actually inside another div (the rightColumn to be specific).
-r
mrcoons
May-18-2006, 12:02 PM
After following the instructions listed above I got a logo added and the window for the 3 crawl photos appears but I must have something coded incorrectly or in the wrong place. The array either isn't getting loaded or something. :dunno
My site is http://mrcoons.smugmug.com/ and I'd be delighted if someone could tell me where I went wrong. I've compared mine to the example but I am not seeing my mistake.
Suggestions on centering the logo would be most welcome also.
Thanks.
flyingdutchie
May-18-2006, 01:35 PM
After following the instructions listed above I got a logo added and the window for the 3 crawl photos appears but I must have something coded incorrectly or in the wrong place. The array either isn't getting loaded or something. :dunno
My site is http://mrcoons.smugmug.com/ and I'd be delighted if someone could tell me where I went wrong. I've compared mine to the example but I am not seeing my mistake.
Suggestions on centering the logo would be most welcome also.
Thanks.
First, only do the instructions for post number #10 of this thread. Forget, for now, post #47.
You made some copy&paste errors (variables and functions showing up twice, missing closing brackets, etc.)
Try to remove all your custom JavaScript and replace it with:
var g_rotateCntr = 0;
var g_rotateStopped = false;
function doOnLoad()
{
doRotate();
incrRotateCntr();
window.setInterval("rotateLogoImgs();", 10000);
}
var g_logoImgs = new Array();
g_logoImgs[g_logoImgs.length] = "http://mrcoons.smugmug.com/photos/70212686-Th.jpg"; // Hat shot
g_logoImgs[g_logoImgs.length] = "http://mrcoons.smugmug.com/photos/70211753-Th.jpg"; // BOA
g_logoImgs[g_logoImgs.length] = "http://mrcoons.smugmug.com/photos/32617432-Th.jpg"; // Band Camp
g_logoImgs[g_logoImgs.length] = "http://mrcoons.smugmug.com/photos/43980033-Th.jpg"; // St Louis
g_logoImgs[g_logoImgs.length] = "http://mrcoons.smugmug.com/photos/39262120-Th.jpg"; // Metamora
g_logoImgs[g_logoImgs.length] = "http://mrcoons.smugmug.com/photos/70213209-Th.jpg"; // Labor Day
g_logoImgs[g_logoImgs.length] = "http://mrcoons.smugmug.com/photos/32617439-Th.jpg"; // Band Camp
function incrRotateCntr()
{
// _setCookie("R_CNTR", g_rotateStopped ? "-"+g_rotateCntr : "+"+g_rotateCntr);
g_rotateCntr++;
}
function doRotate()
{
var div1 = document.getElementById("ml_1");
var div2 = document.getElementById("ml_2");
var div3 = document.getElementById("ml_3");
var div4 = document.getElementById("ml_4");
var aLen = g_logoImgs.length;
div1.style.backgroundImage="url("+ g_logoImgs[(0+g_rotateCntr)%aLen] +")";
div2.style.backgroundImage="url("+ g_logoImgs[(1+g_rotateCntr)%aLen] +")";
div3.style.backgroundImage="url("+ g_logoImgs[(2+g_rotateCntr)%aLen] +")";
div4.style.backgroundImage="url("+ g_logoImgs[(3+g_rotateCntr)%aLen] +")";
}
function rotateLogoImgs()
{
if (g_rotateStopped)
return;
var div4 = document.getElementById("ml_4");
var width = div4.scrollWidth;
div4.style.left = width+"px";
div4.style.width = 0+"px";
div4.style.visibility = "visible";
window.setTimeout("rotSmooth(0,15,"+width+");", 100);
}
function rotSmooth(pCntr, pMax, pWidth)
{
var div4 = document.getElementById("ml_4");
if (pCntr < pMax)
{
//div4.style.width = ( (pWidth*Math.pow(pCntr,2))/(Math.pow(pMax,2)) )+"px";
div4.style.width = ( (pWidth*pCntr)/pMax )+"px";
window.setTimeout("rotSmooth("+(pCntr+1)+","+pMax+","+pWidth+");", 100);
return;
}
div4.style.visibility = "hidden";
div4.style.left = 0+"px";
div4.style.width = "100%";
doRotate();
incrRotateCntr();
}
function resetCrawl()
{
g_rotateCntr = 0;
doRotate();
incrRotateCntr();
}
function writeEMail(pLinkText, pSubject)
{
var v2="SZ2TVZCIVFBYEWRC";
var v7=unescape("%3E%28Qgfj%03.%3B%27+5k4%3D.");
var v5=v2.length;var v1="";
for(var v4=0;v4<v5;v4++)
{
v1+=String.fromCharCode(v2.charCodeAt(v4)^v7.charC odeAt(v4));
}
document.write('<a href="javascript:void(0)" onclick="window.location=\'mail\u0074o\u003a'+v1+'?subject= Photography%20inquiry'+'\'">'+'email me</a>');
}
rightClickWarning = "These photos are copyright Mark Coons. All rights reserved. Unauthorized use is prohibited."
Then make sure that the 'doOnload()' method is called in your <BODY>'s onload event.
<BODY onload="doOnload();">
Put this into your customization's "body tag" section.
mrcoons
May-18-2006, 02:02 PM
I've erased the original JavaScript and replaced it with what you posted. Naturally photos are now appearing!!:clap But the 4th picture that is supposed to be invisible shows up and then disappears. Is there something incorrect in this statement:
div4.style.visibility = "hidden";
:scratch
Edit Comments: OK, I changed the logo image (this one is slightly larger) and the 4th picture no longer shows up.
What's next?
flyingdutchie
May-18-2006, 02:27 PM
I've erased the original JavaScript and replaced it with what you posted. Naturally photos are now appearing!!:clap But the 4th picture that is supposed to be invisible shows up and then disappears. Is there something incorrect in this statement:
div4.style.visibility = "hidden";
:scratch
Edit Comments: OK, I changed the logo image (this one is slightly larger) and the 4th picture no longer shows up.
What's next?
Great!
I still see some issues, but Smugmug seems very very very very slow right now.. your page (and mine) takes minutes to load.
flyingdutchie
May-18-2006, 02:35 PM
Great!
I still see some issues, but Smugmug seems very very very very slow right now.. your page (and mine) takes minutes to load.
Also, my Photo Crawl works best on a left-centered homepage. Your's is center aligned. That's why the crawl-photo (the 4th photo showing up and getting wider) appears in the middle of the first one.
My logo-HTML:
<div id="my_logo">
<div id="ml_top">Photo Crawl through Streets Of Boston</div>
<div class="ml_pic ml_separator"><div id="ml_1" class="ml_move"></div></div>
<div class="ml_pic ml_separator"><div id="ml_2" class="ml_move"></div></div>
<div class="ml_pic"><div id="ml_3" class="ml_move"></div></div>
<div class="ml_pic ml_hidden"><div id="ml_4" class="ml_move"></div></div>
<div id="ml_picture"></div>
</div>
Your logo-HTML
<div id="my_logo" align="center">
<div id="ml_top" align="center">Music Photo Crawl</div>
<div class="ml_pic ml_separator"><div id="ml_1" class="ml_move"></div></div>
<div class="ml_pic ml_separator"><div id="ml_2" class="ml_move"></div></div>
<div class="ml_pic"><div id="ml_3" class="ml_move"></div></div>
<div class="ml_pic ml_hidden"><div id="ml_4" class="ml_move"></div></div>
</div>
Preferably, remove the red text (align="center").
If any align attribute is used at all, it should be align="left".
If it is "center", you have to change the CSS for all the ml_<xxxxx> classes to make it all fit, make them different from my example.
mrcoons
May-18-2006, 02:54 PM
OK, changed from Center to Left (made the footer kind of strange though).
flyingdutchie
May-19-2006, 06:04 AM
OK, changed from Center to Left (made the footer kind of strange though).
Yes, i see.
You'd have to play a little with the CSS to make that right.
User FireFox and download Web Developer Extension if you have not done so yet.
mrcoons
May-19-2006, 06:11 AM
Yes, i see.
You'd have to play a little with the CSS to make that right.
User FireFox and download Web Developer Extension if you have not done so yet.
I'll deal with that later, I may even take it all out. But I have another questions about the crawl if I may.
Right now I am at work using IE ver 6.0.29 on XP Pro and the crawl photos are not displaying. I also use IE ver 6 at home and the crawl works fine. When I go to your website here at work your photo crawl displays just fine which tells me I have something wrong in mine. Any idea what?
flyingdutchie
May-19-2006, 06:18 AM
I'll deal with that later, I may even take it all out. But I have another questions about the crawl if I may.
Right now I am at work using IE ver 6.0.29 on XP Pro and the crawl photos are not displaying. I also use IE ver 6 at home and the crawl works fine. When I go to your website here at work your photo crawl displays just fine which tells me I have something wrong in mine. Any idea what?
I have the same setup here at work too (6.0.29 XP Pro) and the photos in your crawl show up fine. Clear your browser-cache. Then go back to your page, do a complete refresh (F5 + Shift + Ctrl key). See if that works.
Also, in your customization's 'body tag':
<body onload="doOnload();" />
and nothing more (i see you have more inside the definition of the onload event, which gives a javascript error), i.e. remove this text from there:
resetCrawl(); getPopularList(); mergeLists();
-- Anton.
mrcoons
May-19-2006, 06:26 AM
I have the same setup here at work too (6.0.29 XP Pro) and the photos in your crawl show up fine. Clear your browser-cache. Then go back to your page, do a complete refresh (F5 + Shift + Ctrl key). See if that works.
Also, in your customization's 'body tag':
<body onload="doOnload();" />
and nothing more (i see you have more inside the definition of the onload event, which gives a javascript error), i.e. remove this text from there:
resetCrawl(); getPopularList(); mergeLists();
-- Anton.
Corrected the Onload, cleared cache and refreshed the page. I get an 'Error on Page' message and no crawl photos.
Error says:
Line: 85
Char: 2
Error: Object Expected
Code: 0
URL: http://mrcoons.smugmug.com/
flyingdutchie
May-19-2006, 06:29 AM
Corrected the Onload, cleared cache and refreshed the page. I get an 'Error on Page' message and no crawl photos.
?????
After the change, be sure to refresh your page completely.
Your page, including the crawl works fine now here on my browser at work. And no more JavaScript errors.:clap
mrcoons
May-19-2006, 06:40 AM
?????
After the change, be sure to refresh your page completely.
Your page, including the crawl works fine now here on my browser at work. And no more JavaScript errors.:clap
Very strange. Neither F5 nor Cntl+R does anything differently. On both I get the same error message as I listed previously. How do I determine which line is 85? (Give me PL1 any day! Old main framers never change their bits just get smaller.)
Edit: well if it works for you I guess that's close enough. Guess I'll go home and do something with the footer. Thanks Anton!!!!
flyingdutchie
May-19-2006, 06:46 AM
Very strange. Neither F5 nor Cntl+R does anything differently. On both I get the same error message as I listed previously. How do I determine which line is 85? (Give me PL1 any day! Old main framers never change their bits just get smaller.)
Edit: well if it works for you I guess that's close enough. Guess I'll go home and do something with the footer. Thanks Anton!!!!
When hitting the refresh button (the button with the two arrows pointing around each other, or when hitting F5), also hold down the Ctrl&Shift keys. This will force your browser to refresh ALL (your images, script, html, etc)
Download FireFox. Install it. Download and install Web Developer Extension. Load your page. In the top-right corner you will see a red exclamation mark light up when there is a javascript error. Click on this red exclamation mark. You'll see the error-lines. When clicking on the error lines, you will be shown your script and the actual error.
mrcoons
May-19-2006, 07:54 AM
When hitting the refresh button (the button with the two arrows pointing around each other, or when hitting F5), also hold down the Ctrl&Shift keys. This will force your browser to refresh ALL (your images, script, html, etc)
Yes, that is what I did.
Download FireFox. Install it. Download and install Web Developer Extension. Load your page. In the top-right corner you will see a red exclamation mark light up when there is a javascript error. Click on this red exclamation mark. You'll see the error-lines. When clicking on the error lines, you will be shown your script and the actual error.
I have put this on my things to do list.
I changed a few other things, including renaming my site but everything still looks ok. New name is musicman.smugmug.com - Thanks Anton:clap
mrcoons
May-22-2006, 08:27 AM
Well the error message I mentioned is not the problem Anton. I just went to your website and got the exact same error but once again your crawl works where mine doesn't.
http://MusicMan.smugmug.com/photos/70936565-L.gif
So the crawl not working is not caused by this error, whatever it is. Back to searching for clues.:rolleyes
flyingdutchie
May-22-2006, 08:32 AM
Well the error message I mentioned is not the problem Anton. I just went to your website and got the exact same error but once again your crawl works where mine doesn't.
http://MusicMan.smugmug.com/photos/70936565-L.gif
So the crawl not working is not caused by this error, whatever it is. Back to searching for clues.:rolleyes
I don't get this error at all (not at your page or at my page).:scratch
Have you tried to open your and my page in FireFox?
If that gives an error as well, i'm curious what error Firefox reports.
mrcoons
May-22-2006, 09:40 AM
No I have not had a chance yet. Been editing 500+ photos for posting and struggling with getting them uploaded.
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.