Archief - HTML: probleem op mac

Het archief is een bevroren moment uit een vorige versie van dit forum, met andere regels en andere bazen. Deze posts weerspiegelen op geen enkele manier onze huidige ideeën, waarden of wereldbeelden en zijn op sommige plaatsen gecensureerd wegens ontoelaatbaar. Veel zijn in een andere tijdsgeest gemaakt, al dan niet ironisch - zoals in het ironische subforum Off-Topic - en zouden op dit moment niet meer gepost (mogen) worden. Toch bieden we dit archief nog graag aan als informatiedatabank en naslagwerk. Lees er hier meer over of start een gesprek met anderen.

bludgeoned

Legacy Member
ben momenteel bezig aan een klein project en alles lukt goed. Maar overlaatst probeerde ik het uit op een mac met IE en daar blijkt de center functie niet te werken en plaatst hij alles op de rechterkant?
Weet iemand hoe dit komt?

Zero Grav

Legacy Member
probeer de code om te centreren eens die in de sticky staat. Een belangrijke vraag voor zo'n probleem is ook: 'Werk je met valid code?'

Als je werkt met bijvoorbeeld imagereadycode kan het wel eens voorkomen dat die dingen er anders uitzien dan je zou willen.

bludgeoned

Legacy Member
In macromedia heb ik alles gechecked op browser support. Nu blijft alles toch links staan. Op de validator tool van w3 geeft hij toch nog enkele errors.
ZOu het helpen om die log te posten, want de site zou toch 100% moeten werken op mac

bludgeoned

Legacy Member
dit is het stukje code waar alle "fouten" instaan.
Weet iemand dit op te lossen, zou heel goed uitkomen
Code:
<embed src="images/testintro.swf" width="590" height="133" hspace="0" vspace="0" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

hier errorlog van http://validator.w3.org/

Below are the results of attempting to parse this document with an SGML parser.

1. Error Line 74 column 21: there is no attribute "SRC".

<embed src="images/testintro.swf" width="590" height="133" hspace="0"

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

&#9993;
2. Error Line 74 column 50: there is no attribute "WIDTH".

...bed src="images/testintro.swf" width="590" height="133" hspace="0" vspace="0"

&#9993;
3. Error Line 74 column 63: there is no attribute "HEIGHT".

...es/testintro.swf" width="590" height="133" hspace="0" vspace="0" loop="false"

&#9993;
4. Error Line 74 column 76: there is no attribute "HSPACE".

...swf" width="590" height="133" hspace="0" vspace="0" loop="false" quality="hig

&#9993;
5. Error Line 74 column 87: there is no attribute "VSPACE".

..."590" height="133" hspace="0" vspace="0" loop="false" quality="high" pluginsp

&#9993;
6. Error Line 74 column 96: there is no attribute "LOOP".

...ght="133" hspace="0" vspace="0" loop="false" quality="high" pluginspage="http

&#9993;
7. Error Line 74 column 112: there is no attribute "QUALITY".

...="0" vspace="0" loop="false" quality="high" pluginspage="http://www.macromedi

&#9993;
8. Error Line 74 column 131: there is no attribute "PLUGINSPAGE".

...p="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashpl

&#9993;
9. Error Line 74 column 182: there is no attribute "TYPE".

...cromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

&#9993;
10. Error Line 74 column 213: element "EMBED" undefined.

... type="application/x-shockwave-flash"></embed>

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.

bludgeoned

Legacy Member
Heb ik denk ik wel gedaan
hier is de uitgebreide code
Code:
<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="590" height="133" hspace="0" vspace="0">
          <param name="movie" value="images/testintro.swf">
          <param name="quality" value="high"><param name="loop" value="false">
          
          <embed src="images/testintro.swf" width="590" height="133" hspace="0" vspace="0" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
        </object>

dJeez

Legacy Member
Als je nu eens een link zou geven naar een pagina waar je die foutieve weergave hebt hé, dat zou wel eens handig kunnen zijn. 'k Zal dan eens ff checken op de Mac, maar vergeet niet dat IE op Mac hopeloos verouderd is en dat je eigenlijk van Safari moet uitgaan als default browser op Mac (OS X).

dJeez

Legacy Member
Ja hallo... Je creëert een layer van 600px breed die je absoluut positioneert (left 0 en top 0), je content (Flash anim) is 590px breed.

Gooi dus die center tags weg, vervang je start <div> door 't volgende :

Code:
<div id="Layer1" style="margin-left: auto; margin-right: auto; width:600px; z-index:1; background-color: #CCCCCC;">
en hoppa... werkt in zowat alle browsers (IE 5.x op PC niet getest - net zomin als Opera trouwens).

BTW Vergeet je <body> en </body> tag niet!!!!

Factuur (voor 5 minuten werk) volgt :p.

bludgeoned

Legacy Member
bedankt he.
Hopelijk werkt het nu ook op mac.
dikke mercie alvast om een beginneling te helpen met zijn eerste site

dJeez

Legacy Member
n/p Ik vond het zelfs raar dat ook Mozilla eigenlijk in de fout ging door die <center> toe te passen op de div.
Het archief is een bevroren moment uit een vorige versie van dit forum, met andere regels en andere bazen. Deze posts weerspiegelen op geen enkele manier onze huidige ideeën, waarden of wereldbeelden en zijn op sommige plaatsen gecensureerd wegens ontoelaatbaar. Veel zijn in een andere tijdsgeest gemaakt, al dan niet ironisch - zoals in het ironische subforum Off-Topic - en zouden op dit moment niet meer gepost (mogen) worden. Toch bieden we dit archief nog graag aan als informatiedatabank en naslagwerk. Lees er hier meer over of start een gesprek met anderen.
Terug
Bovenaan