Hi I was wondering whether it was possible to use the YahooSections function to return / echo a set of variables, which are picked up by a dynamic image changer such as the one on dyn-web..
http://www.dyn-web.com/code/rotate_i...ate_random.php
I have made a start with the variables, but I can't seem to get them to load into the dynamic image code from dyn-web. It would make a very nice feature to have a dynamically changing image that refers to the current section images.
In <HEAD>
In <BODY>
Is there a way of passing the variables using php??
Please help
http://www.dyn-web.com/code/rotate_i...ate_random.php
I have made a start with the variables, but I can't seem to get them to load into the dynamic image code from dyn-web. It would make a very nice feature to have a dynamically changing image that refers to the current section images.
In <HEAD>
Code:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> function YahooSections(ar) { var strIms = "["; var strUrls = "["; var stralt = "["; for (var i=1;i<=ar.length;i++) { if (ar[i].sURL != null) { strIms += '"' + ar[i].sImage + '"' + ','; strUrls += '"' + ar[i].sURL + '"' + ','; stralt += '"' + ar[i].sName + '"' + ','; { if (ar[i].pChild) { for (var j=1;j<=ar[i].pChild.length;j++) { if (ar[i].pChild[j].sURL != null) { strIms += '"' +ar[i].pChild[j].sImage + '"'+ ','; strUrls += '"' + ar[i].pChild[j].sURL + '"' + ','; stralt += '"' + ar[i].pChild[j].sName + '"' + ','; { if (ar[i].pChild[j].pChild) { for (var k=1;k<=ar[i].pChild[j].pChild.length;k++) { if (ar[i].pChild[j].pChild[k].sURL != null) { strIms += '"' +ar[i].pChild[j].pChild[k].sImage + '"' + ','; strUrls += '"' + ar[i].pChild[j].pChild[k].sURL + '"' + ','; stralt += '"' + ar[i].pChild[j].pChild[k].sName + '"' + ','; } } } } } } } } strIms += "]" ; strUrls += "]" ; stralt += "]" ; } } } var rotator1 = { path: '/', speed: 3000, // default is 4500 id: 'r1', bTrans: true, bMouse: true, bRand: true, images: return strIms actions: return strUrls title: return stralt } function initRotator() { dw_Rotator.setup(rotator1); } dw_Event.add( window, 'load', initRotator); </script>
In <BODY>
Code:
<a href="index.html"><img id="r1" src="smile.gif" alt="" title="That's a nice smile!" border="0"></a>
Is there a way of passing the variables using php??
Please help
Comment