SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2008
    0 Post(s)
    0 Thread(s)

    align-top on Flash object -- rookie question

    I'm using a version of SWFobject that I modified from another site to embed a Flash photo gallery. I know so little about Javascript, I can't even add my own var categories successfully. All I want to do is align the swf to the top of the background behind it. I tried adding this syntax where I thought appropriate, but it didn't work.

    Can someone quickly show me the correct syntax for this?

    <h1 id="first-header-gallery" class="float-left">Gallery</h1>
               <div id="top-image"></div> 
                <p class="normal-par top-par">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam feugiat, lectus sit amet porta elementum, felis risus euismod sapien, at sollicitudin mi libero ut urna. Duis vitae dolor ultrices dui condimentum dapibus. Donec suscipit massa.</p> 
                <div id="thumb-container"><span id="thumb1"><a href="#">Italy</a></span></div>
             <div id="gallery-container">
                 <embed type="application/x-shockwave-flash" src="media/one0one_gallery.swf" id="gallery" name="gallery-container" quality="high" height="500" width="533">
    	<script type="text/javascript">
    		// <![CDATA[
    		var so = new SWFObject("media/one0one_gallery.swf", "gallery-container", "500", "533", "9",);
    		so.addParam( "allowScriptAccess" value="sameDomain")
            so.addParam( "movie" value="one0one_gallery.swf")
    swfobject.embedSWF("media/one0one_gallery.swf", "gallery-container", "500", "533", "9.0.0");
    		// ]]>
    Screen shot of the problem attached.
    Attached Images Attached Images


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts