ok - i got one of the links working and was super happy. Now my problem is getting more that one button on a page with different portfolios working.
I put the js directly into the html (like the example in previous posts for more than one) and renamed each function matching what each button calls the js function in as. It worked great in FF! but to no avail in IE - it will read the first js but not the next ones???
Any ideas?
here's what i have thus far...
Code:
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript">
function portfolio(image) {
var a = document.getElementById("editorial"+image+"");
var f = new Array()
f[1] = "images/eyes1.jpg";
f[2] = "images/eyes2.jpg";
f[3] = "images/eyes3.jpg";
var url = f[image];
a.setAttribute('href', url);
myLightbox.start(a);
}
</script>
<script type="text/javascript">
function showb(image) {
var a = document.getElementById("identity"+image+"");
var f = new Array()
f[1] = "images/CB-Logo.jpg";
f[2] = "images/empireyellow.jpg";
f[3] = "images/empirered.jpg";
var url = f[image];
a.setAttribute('href', url);
myLightbox.start(a);
}
</script>
</head>
<body bgcolor="#808160">
<div id="script">
<a id="editorial1" href="images/eyes1.jpg" rel="lightbox[editorial]" title="Editorial"></a>
<a id="editorial2" href="images/eyes2.jpg" rel="lightbox[editorial]" title="Editorial"></a>
<a id="editorial3" href="images/eyes3.jpg" rel="lightbox[editorial]" title="Editorial"></a>
<a id="identity1" href="images/CB-Logo.jpg" rel="lightbox[identity]" title="Charlene Burris - logo"></a>
<a id="identity2" href="images/empireyellow.jpg" rel="lightbox[identity]" title="Empire S.C. - logo"></a>
<a id="identity3" href="images/empirered.jpg" rel="lightbox[identity]" title="Empire S.C. - logo"></a>
</div>
<script type="text/javascript">
var so = new SWFObject("home2.swf", "flashmovie", "990", "520", "8", "#808160");
so.addParam("movie", "home2.swf");
so.addParam("quality", "high");
so.addParam("bgcolor", "#808160");
so.addParam("align", "t");
so.addParam("allowScriptAccess", "always");
so.write("flashcontent");
</script>
and the as obviously
Code:
on (release) {
getURL("javascript:portfolio(1)");
}
on (release) {
getURL("javascript:showb(1)");
}
Bookmarks