Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 04-20-2008, 06:42 PM   #1 (permalink)
Registered User
 
Join Date: Apr 2008
Location: Texas
Posts: 13
OS: WinXP-Pro x64, OSXLeopard, Server 2003


TopMargin issues in Firefox

Ok so here is the deal. My website looks Great in IE6/7 and Safari.

But in firefox it keeps throwing my flash object to the top of the screen.

The site is http://198.106.24.178/test.html

if someone could tell me what I am doing wrong...that would be great.

-Aeron
ABERROOWNN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 04-20-2008, 08:55 PM   #2 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,884
OS: Vista, various linux distros


Re: TopMargin issues in Firefox

Well, i'd suggest using css rather than html to place the element, i used a javascript shell to test the theory,

my suggestion is to rid of the topmargin bit to start with:

so you have:
Code:
<BODY BACKGROUND="testfiles/Page0_IMG_BCK.jpg" LINK="#0000ff" VLINK="#0000a0">

then give the div object(which holds the movie) an id so you can reference it in CSS
Code:
<div id="myFlash" align="center">
then add some css like so:

Code:
<style type="text/css">
  DIV#myFlash{
      position: relative;
      top: 150px;
  }
</style>

After that and some cleaning your source for this page would look like:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<HTML>

<HEAD>
<meta name="keywords" content="ClubDesign Associates, John Cochran, Fort Worth, Texas 76102, Houston, Texas 77478, New construction, Renovation, Remodeling, Re-decorate, Golf Club facilities, Country Club interior design, Interior decorators architecture, Contemporary Casual elegance">
<meta name="description" content="ClubDesign Associates is an interior design firm specializing in new constructions, renovation, and remodeling country club, golf club and municipal golf club facilities. Our projects have ranged from a few hours of consultation to 8 million dollar projects. We feel that every project is important regardless of the size of budget.">

<TITLE> ClubDesign Associates </TITLE>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
window.onerror = null;
manufacturer = navigator.appName;
versionnum = parseFloat(navigator.appVersion);
if (manufacturer.indexOf('Netscape') >= 0 && versionnum < 4.0)
location.href = 'testfiles/error.html';
if (manufacturer.indexOf('Microsoft') >= 0 && versionnum < 4.0)
location.href = 'testfiles/error.html';
//-->
</SCRIPT>

<style type="text/css">
  DIV#myFlash{
      position: relative;
      top: 150px;
  }
</style>

</HEAD>

<BODY BACKGROUND="testfiles/Page0_IMG_BCK.jpg" LINK="#0000ff" VLINK="#0000a0">

<div id="myFlash" align="center">
<OBJECT type="application/x-shockwave-flash" data="testIntro.swf"

  ID=Intro WIDTH=700 HEIGHT=300>

<PARAM NAME=movie VALUE="testIntro.swf">

<PARAM NAME=quality VALUE=high>

<PARAM NAME=loop VALUE=false>

<PARAM NAME=wmode VALUE=transparent>

</OBJECT>

</DIV>

</BODY>
</HTML>
the problem was you were using html to position your element and cross-browser compatibility is an effort with just html, with css things are more standardised, all you have to look out for is random margins etc.

google "w3schools" if you want to go further with css/javascript

Hope i helped,

Jamey

Last edited by jamiemac2005; 04-20-2008 at 08:57 PM.
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-20-2008, 09:05 PM   #3 (permalink)
Registered User
 
Join Date: Apr 2008
Location: Texas
Posts: 13
OS: WinXP-Pro x64, OSXLeopard, Server 2003


Re: TopMargin issues in Firefox

Jamey,

Thanks for your help. I will def be checking out that site and learning css.

Aeron
ABERROOWNN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-20-2008, 09:09 PM   #4 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,884
OS: Vista, various linux distros


Re: TopMargin issues in Firefox

Glad i could help, i definately reccomend http://www.w3schools.com/ if you wish to learn any web-based language.

Cheers,
Jamey
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-21-2008, 12:13 AM   #5 (permalink)
Design Team Member
 
Jaxo's Avatar
 
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista


Exclamation Re: TopMargin issues in Firefox

Throw my .2 cents into the ring.

With Firefox 3 your flash does not load.

Enter code before your closed </object> tag and it works in FF3. Don't have laptop in front of me to test in FF2.

Code:
<embed type="application/x-shockwave-flash" src="testIntro.swf" id="Intro" width="700" height="300">
</embed>
Good looking site, although I am not a fan of flash intro's. Thankfully your intro is short enough not to be annoying.
Jaxo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-21-2008, 05:46 AM   #6 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,884
OS: Vista, various linux distros


Re: TopMargin issues in Firefox

actually, sorry to contradict what you've said jaxo but i'm running firefox 3.05b and the flash loads fine and always did.

Might just be you, what do you mean by wont load? and what FF and flash plugin versions are you using? (just out of curiosity, it would be good to make his site completely compliant to safari, IE and FF).

I'm not a fan of flash intros either actually, if you're writing flash sites they're only good if they're short(like aeron's).

Another small idea aeron, what else is going on your site?
because you could just extend the canvas of your flash site and have a full screen flash site?, rather than having to position things using dhtml

If you need any more intensive help from someone on a specific subject (HTML, Javascript, CSS and so on) then i'd also suggest becoming a member of webdeveloper.com (if you're not already), as 9/10 times you'll find that one of the people on there is an extreemly experienced developer and they can help you out loads (quickly too). Still i dont want to drive you away from this forum, as it's the best for any general issues you find with computers.

Cheers,
Jamey

P.S. aeron, do you use firefox as your main testing browser? I tend to when i'm writing sites, and yet you can use things like IE Tab(https://addons.mozilla.org/en-US/firefox/addon/1419) to emulate IE in firefox (making testing a whole lot quicker etc.) and do you have the latest firefox, etc. ?

Last edited by jamiemac2005; 04-21-2008 at 05:52 AM.
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-21-2008, 05:19 PM   #7 (permalink)
Design Team Member
 
Jaxo's Avatar
 
Join Date: Feb 2008
Location: Deming, NM
Posts: 312
OS: XP SP2 & Vista


Re: TopMargin issues in Firefox

Firefox 3.0b5
Old Flash Version: Shockwave Flash 9.0 r115
New Flash Version: Shockwave Flash 9.0 r124

Funny thing. Updating flash version kicked me back to Firefox 2.0.. Had to install beta again.

Flash does not load(only background image) on site at all in FF3 with old and new flash version. While FF reverted back to v2 it did load just fine. Adding the <embed> tags within <object> does fix the issue via Firebug. I am assuming I am not the only one with this type of setup. ?? Wouldn't be safer to include the code to insure maximum browser usability?

Jaxo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-21-2008, 05:26 PM   #8 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,884
OS: Vista, various linux distros


Re: TopMargin issues in Firefox

wow that is random, i'm running Firefox 3.05b and the newer flash version and it worked fine, and yeah of corse, sorry i should have said that including it anyway would be best as it would probably maximise cross-browser compliance.

Cheers,
Jamey
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 04-21-2008, 09:59 PM   #9 (permalink)
Registered User
 
Join Date: Apr 2008
Location: Texas
Posts: 13
OS: WinXP-Pro x64, OSXLeopard, Server 2003


Re: TopMargin issues in Firefox

I use firefox with the ie tabs but I never thought of testing it with those(GOOD IDEA)

Also about the site. They wanted an intro that had a little pizzaz in it so thats why I went with flash for the intro. The other pages are just gonna be straight dhtml or somethin like that....This is my first REAL site. I am proficient in the adobe creative suite and because of that i kinda landed this gig and I thought heck for a couple grand I could throw a site together. So basically i will have 4 more pages of just static graphics and text and one page with their 'portfolio' so i have been debating whether or not to use flash to do that as well.

Once again thanks for your time and Knowledge :)

-Aeron
ABERROOWNN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 07:50 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85