PDA

View Full Version : Help with AC_FL_RunContent_QueryString


allan smith
05-31-2008, 03:39 PM
on http://www.telfordsteamrailway.co.uk/newstructure/newindex.php I am setting up, on the right hand side, 2 fundraising banners. The JScript was provided by the service provider.

Its all up and running, but I wanted to add a 'title' attribute for mouse over.
the HTTML script is (the PHP is woring correctly, serving the correct file path)

<script <?php echo("src=\"".$whatfolder."jscripts/AC_RunActiveContent_QueryString.js\"") ?> type="text/javascript"></script>
<script <?php echo("src=\"".$whatfolder."jscripts/tsrfundraising.js\"") ?> type="text/javascript"></script>
<noscript>
<div>
<object class="easy" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
id="a120_60_us"
type="application/x-shockwave-flash"
data="http://www.easyfundraising.org.uk/images/user-banners/ef-flash/120_60_us.swf?target=_blank&amp;clickThrough=http%3A%2F%2Fwww.easyfundraising.org.uk%2Ftelfordsteamrailw ay%2F" >
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://www.easyfundraising.org.uk/images/user-banners/ef-flash/120_60_us.swf?target=_blank&amp;clickThrough=http%3A%2F%2Fwww.easyfundraising.org.uk%2Ftelfordsteamrailw ay%2F" />
<param name="quality" value="high" />
Sorry your browser does not support embedded video files
</object>
</div>
</noscript>

I have zipped and attached the 2 JScript files.
the line in 'tsrfundraising.js'
'title', 'Link to TSR Fundraising when you Search. Opens in a new window.',
I added myself, it was not present in the original as supplied, but has had no effect, there is no title displayed when the mouse moves over the image.
Can someone help me out - what did I do wrong, or miss out?

Thanks Allan

allan smith
05-31-2008, 04:02 PM
I tried adding an 'alt' - still didnt work.
In the 'AC_FL_RunContent_QueryString.js' code there is a 'case' statement. It has provision for 'title' - but no code attached to that 'case'. There is no 'case' for 'alt'.
I suspect code needs to be added against the 'title' - but what??

allan smith
06-01-2008, 06:44 AM
OK - I studied it some more - took the 'alt' out - and realised that the 'case' for 'title' was just passing down -so no code missing - it just extracts the parameters to arrays.
The 'AC_FL...js' seems to contain version detection that isnt being used.
It contains 2 entry points for 'AC_FL_RunContent_QueryString' and 'AC_SW_RunContent' both of which extract the parameters passed and then call 'AC_Generateobj_QueryString' which, depending on the OS and Browser, generate either an 'embed' or 'object' string which is then 'document.write' to the page.
I cant see this document.write in my page when I 'view source' - so how is the SWF being activated - what launches the AX object??

allan smith
06-02-2008, 04:06 PM
Hmm - cant get anywhere with this - even manually creating object rather than using script - seems IE and FF dont handle 'title' on 'object' - at least for this classid/type. - SO I need another approach - this thread closed and new one opened
under 'mouseover help please'