You are not logged in.

1

Monday, August 13th 2012, 8:27pm

dynamic images and links

Hello everyone,

I was wondering if you can help me set variables externally and have the file set it internally...
These are links I want to change at certain times and I don't want to rebuild in kolor every time. Also this link is completely new page.

Here's some stuff that might help

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function imagelink {
return www.website.com/asdf.jpg;
}

function pagelink {
var link = "www.website.com"; 
return 'openurl(' + link + ', _blank)';
}

<script src="swfobject/swfkrpano.js"></script>
  <div id="container">
  	<div id="panoDIV" style="height:100%;">
    	<script>
      	embedpano({target:"panoDIV",swf:"build.swf"});
       	embedpano.call("set(hotspot[spot0].url", imagelink);
       	embedpano.call("set(hotspot[spot0].onclick", imagelink);
    	</script>
      	<noscript>
        	<div id="tour">
          	<object width="100%" height="100%">
            	<embed src="build.swf" width="100%" height="100%" allowFullScreen="true"></embed>
          	</object>
        	</div>
      	</noscript>


Thank you everyone