Autor | Zpráva | ||
---|---|---|---|
toutatis Profil * |
#1 · Zasláno: 3. 8. 2006, 21:14:40
Nevíte proč mi tohle nefunguje v IE?
<div> <!--[if !IE]> --> <object type="application/x-shockwave-flash" data="movie.swf" width="300" height="135"> <!-- <![endif]--> </div> |
||
WanTo Profil |
#2 · Zasláno: 3. 8. 2006, 21:16:14
Protože tam máš podmínku, aby se to v IE nezobrazovalo. Smaž ty komentáře.
|
||
quinux Profil |
#3 · Zasláno: 3. 8. 2006, 21:16:38
IE neumí používat parametr "data" v objectu
http://www.dgx.cz/trine/item/jak-spravne-vlozit-flash-do-stranky |
||
toutatis Profil * |
#4 · Zasláno: 3. 8. 2006, 21:31:24
<!--[if !IE]> -->
<object type="application/x-shockwave-flash" data="menu.swf" width="230" height="400"> <!-- <![endif]--> <!--[if IE]> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="230" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=6,0,0,0"> <param name="menu" value="menu.swf" /> <!--><!--dgx--> <param name="loop" value="true" /> <param name="menu" value="false" /> <p>This is <strong>alternative</strong> content.</p> </object> <!-- <![endif]--> Mno....celkově to mám takto, ale v IE mě to nechce jet. |
||
WanTo Profil |
#5 · Zasláno: 3. 8. 2006, 21:36:51
Máš v IE nainstalovaný Flash Player?
|
||
toutatis Profil * |
#6 · Zasláno: 3. 8. 2006, 21:38:25
To poznám jak? To musí být zvlášť v IE?
|
||
WanTo Profil |
#7 · Zasláno: 3. 8. 2006, 21:40:11
toutatis
Já nevím, jen mě to tak napadlo :-) Tady na diskuzi se někde válí odkaz na "bulánky", tak to zkus, údajně to v IE funguje. |
||
toutatis Profil * |
#8 · Zasláno: 3. 8. 2006, 21:41:24
a ten kod je teda v pořádku?
|
||
quinux Profil |
#9 · Zasláno: 3. 8. 2006, 21:45:17
toutatis
Pokud nemáš chybu v cestě k soubrou tak by to mělo být v pořádku. Pokud, ale ani nevíš, že flash se instaluje zvlášť tak si jeho přítomnost zkontroluj http://www.adobe.com/products/flash/about/ |
||
toutatis Profil * |
#10 · Zasláno: 3. 8. 2006, 21:55:47
v Mozille se to zobrazuje dobře. A měl jsem na mysli jestli se flash player nějak instaluje do IE, na to sem se ptal. Přišlo mi to trochu divný.
|
||
quinux Profil |
#11 · Zasláno: 3. 8. 2006, 21:58:55
toutatis
Ano do všech prohlížečů se musí doinstalovat podpora |
||
toutatis Profil * |
#12 · Zasláno: 3. 8. 2006, 22:01:12
tak to bude asi tím. Jak si ho mám nainstalovat do IE?
|
||
toutatis Profil * |
#13 · Zasláno: 3. 8. 2006, 22:17:19
pokud najedu na ty stránky od quinux tak mi to píše You have version 8,0,24,0 installed takže už nevím kde je problém.
|
||
quinux Profil |
#14 · Zasláno: 3. 8. 2006, 22:30:31
toutatis
Pokud ti to v IE píše, že máš nainstalovaný flash, tak je opravdu problém někde jinde. Zkus to hodit na web a sem dát link, třeba máš někde chybu a přehlídl jsi to |
||
toutatis Profil * |
#15 · Zasláno: 3. 8. 2006, 22:38:07
No já si vytáh ten kod z tohoto:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250" /> <meta name="author" content="David Grudl, http://www.dgx.cz" /> <meta http-equiv="imagetoolbar" content="no" /> <link rel="home" href="http://www.dgx.cz/trine/item/jak-spravne-vlozit-flash-do-stranky " title="La Trine - Jak správně vložit Flash do stránky" lang="cs" /> <title>W3C way - How to insert a Flash movie in (X)HTML valid way</title> <!--[if IE]><script type="text/javascript" src="fix_eolas.js" defer="defer"></script><![endif]--> </head> <body> <div> <!--[if !IE]> --> <object type="application/x-shockwave-flash" data="movie.swf" width="300" height="135"> <!-- <![endif]--> <!--[if IE]> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="135" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=6,0,0,0"> <param name="movie" value="movie.swf" /> <!--><!--dgx--> <param name="loop" value="true" /> <param name="menu" value="false" /> <p>This is <strong>alternative</strong> content.</p> </object> <!-- <![endif]--> </div> </body> </html> a chyba bude asi v tom, že musím ještě udělat jakýsi javascrip nebo něco takového ne? Viz tučný text. Jelikož tam nic takového nemám. |
||
quinux Profil |
#16 · Zasláno: 3. 8. 2006, 23:00:25
Ne, ten javascript je potřeba jen pokud chceš obejít nutnost aktivování flashe v IE. Pro zobrazení však nemá žádný vliv.
Mělo by to fungovat, nevím kde děláš chybu. |
||
toutatis Profil * |
#17 · Zasláno: 3. 8. 2006, 23:03:04
a dal jsem to do toho:
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Hotel</title> <link rel="stylesheet" type="text/css" href="styl.css"> <style> body { background-image: URL('images/kachle8.jpg'); background-attachment: fixed; background-color: black; color: white; } </style> </head> <body> <div id="all"> <div id="hlavicka"> </div> <div class="overflow" id="levysloupec"> <div id="submenu"> <? $sekce = isset($_GET['sekce'])? $_GET['sekce']: NULL; if(!$sekce) {$sekce="";} if(file_exists("./".$sekce.".html")) { include("./".$sekce.".html"); } ?> </div> <br> <br> <script type="text/javascript"> /*********************************************** * Fade-in image slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ var slideshow_width='400px' //SET IMAGE WIDTH var slideshow_height='200px' //SET IMAGE HEIGHT var pause=5000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds) var fadeimages=new Array() //SET 1) IMAGE PATHS, 2) optional link, 3), optional link target: fadeimages[0]=["photos/fotka1.jpg", "", ""] //image, link, target syntax fadeimages[1]=["photos/fotka2.jpg", "", ""] fadeimages[2]=["photos/fotka3.jpg", "", ""] ////NO need to edit beyond here///////////// var preloadedimages=new Array() for (p=0;p<fadeimages.length;p++){ preloadedimages[p]=new Image() preloadedimages[p].src=fadeimages[p][0] } var ie4=document.all var dom=document.getElementById if (ie4||dom) document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_ height+';overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_ height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div> <div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_ height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10;visibil ity: hidden"></div></div>') else document.write('<img name="defaultslide" src="'+fadeimages[0][0]+'">') var curpos=10 var degree=10 var curcanvas="canvas0" var curimageindex=Math.floor(Math.random() * fadeimages.length) var nextimageindex=Math.floor(Math.random() * fadeimages.length) function fadepic(){ if (curpos<100){ curpos+=10 if (tempobj.filters) tempobj.filters.alpha.opacity=curpos else if (tempobj.style.MozOpacity) tempobj.style.MozOpacity=curpos/101 } else{ clearInterval(dropslide) nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1" tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas) tempobj.innerHTML=insertimage(nextimageindex) nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0 var tempobj2=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas) tempobj2.style.visibility="hidden" setTimeout("rotateimage()",pause) } } function insertimage(i){ var tempcontainer=fadeimages[i][1]!=""? '<a href="'+fadeimages[i][1]+'" target="'+fadeimages[i][2]+'">' : "" tempcontainer+='<img src="'+fadeimages[i][0]+'" border="0">' tempcontainer=fadeimages[i][1]!=""? tempcontainer+'</a>' : tempcontainer return tempcontainer } function rotateimage(){ if (ie4||dom){ resetit(curcanvas) var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas) crossobj.style.zIndex++ tempobj.style.visibility="visible" var temp='setInterval("fadepic()",50)' dropslide=eval(temp) curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0" } else document.images.defaultslide.src=fadeimages[curimageindex][0] curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0 } function resetit(what){ curpos=10 var crossobj=ie4? eval("document.all."+what) : document.getElementById(what) if (crossobj.filters) crossobj.filters.alpha.opacity=curpos else if (crossobj.style.MozOpacity) crossobj.style.MozOpacity=curpos/101 } function startit(){ var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas) crossobj.innerHTML=insertimage(curimageindex) rotateimage() } if (ie4||dom) window.onload=startit else setInterval("rotateimage()",pause) </script> </div> <div id="pravysloupec"> <!--[if !IE]> --> <object type="application/x-shockwave-flash" data="menuhotel.swf" width="230" height="400"> <!-- <![endif]--> <!--[if IE]> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="230" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=6,0,0,0"> <param name="menuhotel" value="menuhotel.swf" /> <!--><!--dgx--> <param name="loop" value="true" /> <param name="menu" value="false" /> <p>This is <strong>alternative</strong> content.</p> </object> <!-- <![endif]--> </div> <div id="paticka"> <div class="vzor1" style="text-align:left; width:300px; float:left; margin:10px; padding:0px; border:0px;"><a href="neco.html"><b>Aktuální informace:</b> text text text text text text text text text text text text text text text text text text text text text text ...</a></div> <div class="vzor1" style="text-align:left; width:300px; float:right; margin:10px; padding:0px; border:0px;"><a href="neco.html"><b>Aktuální informace:</b> text text text text text text text text text text text text text text text text text text text text...</a></div> </div> </div> </body> </html> |
||
quinux Profil |
#18 · Zasláno: 3. 8. 2006, 23:05:24
Nemáš to spíše už někde an webu? Btw co má dělat ten script?
|
||
toutatis Profil * |
#19 · Zasláno: 3. 8. 2006, 23:07:25
ten skript mění obrázku...ok dám to na web
|
||
toutatis Profil * |
#20 · Zasláno: 3. 8. 2006, 23:11:46
no ale na webu to nezobrazuje ani v mozille :/ http://uznevim.webzdarma.cz/
|
||
quinux Profil |
#21 · Zasláno: 3. 8. 2006, 23:14:28
A máš tam ten swf soubor nahraný? A hlavně musí být velikost písmen stejná jako v kódu (včetně přípony)
|
||
toutatis Profil * |
#22 · Zasláno: 3. 8. 2006, 23:20:39
no vidíš jsem to ale pako hehe http://uznevim.webzdarma.cz/ ale v IE to stále nejede :/
|
||
quinux Profil |
#23 · Zasláno: 3. 8. 2006, 23:35:39
zkus tuhle verzi
<!--[if IE]> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfl ash.cab#version=6,0,0,0" width="195" height="220"> <param name="movie" value="/img/swf/bakti_okno.swf"> <![endif] --> <!--[if !IE]> <--> <object type="application/x-shockwave-flash" data="/img/swf/bakti_okno.swf" width="195" height="220"> <!--> <![endif]--> <param name="loop" value="true"> <param name="menu" value="false"> <!-- Alternativni obsah START --> <img src="/files/cz/ostatni/hrajtesi.gif" alt="Hrajte si - pro děti"> <!-- Alternativni obsah END --> </object> |
||
toutatis Profil * |
#24 · Zasláno: 3. 8. 2006, 23:46:11
Super. Jak si mi poslal tohle hned jsem si všiml té chyby co jsem tam měl. <param name="movie" .........> a já tam měl <param name="menuhotel".........>
Díky ti za všechno :) |
||
quinux Profil |
#25 · Zasláno: 3. 8. 2006, 23:48:03
aha .. no vidíš já si toho nevšim ;o)) nz
|
||
Chamurappi Profil |
#26 · Zasláno: 3. 8. 2006, 23:51:56
Nebylo by jednodušší použít <embed>?
|
||
toutatis Profil * |
#27 · Zasláno: 4. 8. 2006, 00:00:11
Chamurappi
Jednoduší v čem? |
||
Chamurappi Profil |
#28 · Zasláno: 4. 8. 2006, 00:16:10
Reaguji na toutatise:
V zápisu. <embed type="application/x-shockwave-flash" src="movie.swf" width="300" height="135"> |
||
toutatis Profil * |
#29 · Zasláno: 4. 8. 2006, 00:17:51
je to výhodnější?
|
||
Chamurappi Profil |
#30 · Zasláno: 4. 8. 2006, 00:52:52
Reaguji na toutatise:
Je to jednodušší. Lépe se to pamatuje, vypadá to v kódu méně šíleně a funguje to pravděpodobně ve více prohlížečích. |
||
Téma pokračuje na další straně.
|
Toto téma je uzamčeno. Odpověď nelze zaslat.
0