Jump to content

Empty_5oul

Members
  • Posts

    3
  • Joined

  • Last visited

Empty_5oul's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. if you are using HTML - tables you have to add the link within flash.Personally i have neved been able to add links from outside flash, but i think using a div overlay (the same size and position as the swf file) it is possible to add links externally - from outside flash.
  2. i figured it out eventually.where the array starts from position 0 the "==" condition needed to be 3 not 4.
  3. I have a simple script to chose an image from an array to use as the image on a page. Some are .gif but some are .swf filetypesThese have to be loaded separatley. All image formats work fine but i have problems with the .swfIn the following code if i make the "if = 4" the swf displays correctly but all the time as it is an assignment statement. But making it "if == 4" as a comparisson the swf then doesnt display at all. Why not :S ?? var imgPicArray = new Array("chesters.gif", "moira.gif", "sussexd.gif", "eastbourneapartments.swf");var imgLinkArray = new Array("http://www.chesterseastbourne.com", "http://www.moirahouse.co.uk", "http://www.sussexdowns.ac.uk", "http://www.eastbourneapartments.com");var imgValue = Math.floor(Math.random()*4);var imageFileSelection = imgPicArray[imgValue];var imageUrl = imgLinkArray[imgValue];var imgData ="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='100' height='100'><param name='movie' value='sponsors/eastbourneapartments.swf'><embed src='sponsors/eastbourneapartments.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='100' height='100'></embed></object>";if (imgValue==4) { document.write(imgData);}else {document.write("<A href =",imageUrl," target='_blank'><IMG SRC =\sponsors/",imageFileSelection,"></a>");} what am i doing wrong?thanks.
×
×
  • Create New...