Wrox Programmer Forums
|
BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4
This is the forum to discuss the Wrox book Beginning Dreamweaver MX by Charles E. Brown, Imar Spaanjaars, Todd Marks; ISBN: 9780764544040
Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2004, 01:13 AM
Registered User
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default flash menu alignment problem in Dreamweaver

ok, here is a link to a site i'm working on. the flash menu is centered how i want it and all...but...unmaximize your browser window. see how the menu is out to the right?

here's the portion of code relating to the menu and right below it is where my table starts. i've tried pasting the code inside the table but it won't align properly still.

Quote:
quote:<div id="Layer1" style="position:absolute; left:753px; top:168px; width:205px; height:26px; z-index:1">
  <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="206" height="16">
    <param name="movie" value="menu.swf">
    <param name="quality" value="high">
    <param name="SCALE" value="exactfit">
    <embed src="menu.swf" width="206" height="16" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit"></embed>
  </object>
</div>
<table width="800" height="601" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
    <tr>


the only way i could get the menu to be where it's at was to put it on a layer.

ive used dreamweaver a couple of times in the past but that was 3 years ago for an html class in school. other than that, complete novice. ive got experience coding, but not with html.
 
Old November 22nd, 2004, 03:33 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I haven't seen the full source of your site, but I think the problem is caused by absolute positioning:

style="position:absolute; left:753px; top:168px; width:205px; height:26px; z-index:1">

This will always position the menu at a fixed location. So, when you resize the window, the menu will stay put.

Try dropping the entire style attribute; the menu may stay exactly where it should, as it may follow the "document" flow....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Pictures of you by The Cure (Track 2 from the album: Disintegration) What's This?
 
Old November 22nd, 2004, 03:54 PM
Registered User
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thx for the advice.

the url to my website is in my previous post..you can check the whole site source from that, unless i'm mistaken.

as to your suggestion, when i delete the style attribute, the menu goes up to the top left corner of the page. i can't use it over the picture where it is supposed to go. is there some other way to use a .sfw file over top a picture besides using a layer?
 
Old November 22nd, 2004, 04:07 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, I had seen the link. I just hadn't checked the source yet ;)

Anyway, I am not sure if trying to put the menu above the image is the smartest idea. You'll run into problems like this. I am not saying it isn't possible, but just that it can be difficult to do.

The easiest, and often used, way to do this is to "slice" your images in a couple of parts. Then "tile" the images and the Flash animation until they make up the whole picture.

Programs like Fireworks can do this for your automatically.

If you want to take the easy way out embed the background image in your Flash animation....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Stone Cold Bush by Red Hot Chili Peppers (Track 8 from the album: Mother's Milk) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about combining flash into dreamweaver zionchild Dreamweaver (all versions) 0 May 9th, 2005 05:22 PM
Using Flash in Dreamweaver Problem miklewis7 Dreamweaver (all versions) 4 April 1st, 2004 03:41 AM
Flash Movies In Dreamweaver Ben Horne Dreamweaver (all versions) 1 February 11th, 2004 02:51 AM
Using Flash buttons in Dreamweaver MX Ben Horne Dreamweaver (all versions) 3 September 30th, 2003 01:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.