Archivlink: javarea.de Forum > JavaScript > Javascipt will im Firefox nicht mit Doctype xhtml
Vollständigen Link anzeigen: javarea.de Forum > JavaScript > Javascipt will im Firefox nicht mit Doctype xhtml

Pages: [1]

geschrieben von blackdahlia am 02.11.2007 - 00:59
Halli Hallo, ich will nicht stören...^^ doch muss ich ja.
Also ich hab ein phpbb3 forum, gut oder schlecht egal...
ich hab soweit mein problem eingekreist::::

Es wird Weinachten (gut ist der Grund für mein Problem ^^)
Es soll mal wieder schneien im Forum... (kommt nicht von mir, aber ich muss es umsetzen -.-)...
Egal ob ich ein schnee-script von hier oder sonst wo nehme, egal welches...
im firefox passiert garnix... außer ich nehme den doctype raus, bzw. ändere ihn auf html, dann geht es ...
-->Jetzt kommts:
drei mal dürft ihr raten was passiert, wenn ich den doctype ändere oder entferne... das forum sieht aus als wenn ne walze drübergefahren ist -.-

So, nun zu mir, die doctype's hab ich bis jetzt immer in ruhe gelassen, nur was soll ich machen???

mein jetziger : "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"
dürfte bekannt sein...

oder liegt es daran das alle scripts noch zu alt sind die man findet und irgend was beim firefox nun anders sein muss (im script).

ich kann nich mehr, die vielen code changes die letzten 2 monate, haben mich klirre im kopf gemacht...

ok nun sitz ich hier und singe (und hoffe mal das mir wer helfen kann, damit ich mit dem singen wieder aufhören kann...)

geschrieben von Speedy19102000 am 02.11.2007 - 01:20
Morgen!

Moment..., ich schau mal in meine Glaskugel .........,
Neeeee, ich kann nichts sehen, .......,
Quelltext ......, nöööö,
"mein jetziger Doctype" he! Mhhhhh!

MfG Speedy

geschrieben von blackdahlia am 02.11.2007 - 13:10
HEHE Re:Morgen ^^

Die geistige Umnachtung hab ich in meiner Glaskugel auch immer ...

schaun wer mal
quelltext des header (bis zum body):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2002-2006 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
{META}
<title>{SITENAME} &bull; <!-- IF S_IN_MCP -->{L_MCP} &bull; <!-- ELSEIF S_IN_UCP -->{L_UCP} &bull; <!-- ENDIF -->{PAGE_TITLE}</title>

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

<script type="text/javascript">
// <![CDATA[
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
}
<!-- ENDIF -->

function popup(url, width, height, name)
{
if (!name)
{
name = '_popup';
}

window.open(url.replace(/&amp;/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
return false;
}

function jumpto()
{
var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
var perpage = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';

if (page !== null && !isNaN(page) && page > 0)
{
document.location.href = base_url.replace(/&amp;/g, '&') + '&start=' + ((page - 1) * perpage);
}
}

/**
* Find a member
*/
function find_username(url)
{
popup(url, 760, 570, '_usersearch');
return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
var parent = document.getElementById(id);
if (!parent)
{
eval('parent = document.' + id);
}

if (!parent)
{
return;
}

var rb = parent.getElementsByTagName('input');

for (var r = 0; r < rb.length; r++)
{
if (rb[r].name.substr(0, name.length) == name)
{
rb[r].checked = state;
}
}
}

<!-- IF ._file -->

/**
* Play quicktime file by determining it's width/height
* from the displayed rectangle area
*
* Only defined if there is a file block present.
*/
function play_qt_file(obj)
{
var rectangle = obj.GetRectangle();

if (rectangle)
{
rectangle = rectangle.split(',')
var x1 = parseInt(rectangle[0]);
var x2 = parseInt(rectangle[2]);
var y1 = parseInt(rectangle[1]);
var y2 = parseInt(rectangle[3]);

var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
}
else
{
var width = 200;
var height = 0;
}

obj.width = width;
obj.height = height + 16;

obj.SetControllerVisible(true);

obj.Play();
}
<!-- ENDIF -->

// ]]>
</script>
<script src="snow.js" type="text/javascript"></script>
</head>
<body class="{S_CONTENT_DIRECTION}">

und quelltext der snow.js:

oh beitrags länge -->kommt gleich...

geschrieben von blackdahlia am 02.11.2007 - 13:12

geschrieben von Speedy19102000 am 02.11.2007 - 15:28

geschrieben von blackdahlia am 02.11.2007 - 15:43
Erstmal danke ^^
die schneeflocken gefallen mirschon mal besser...,
firefox läd das script
aber...

fehler konsole von firefox meldet:

Deklaration ignoriert für 'top' und 'left'
(Fehler beim verarbeiten des wertes)

ich denk mal jetzt nur noch die richtige deklaration und dann kanns winter werden
bloß welche

ah ich habs, nur eine kleinigkeit ^^, es müssen ja pixel sein

HTML-Quelltext
1: 
2: 
3: 
4: 
5: 
snow[i].style.left = snow[i].posx + "px";
snow[i].style.top = snow[i].posy + "px";

snow[i].style.left = snow[i].posx + lftrght[i] * Math.sin(crds[i]) + "px";
snow[i].style.top = snow[i].posy + "px";



Danke Danke Danke *verbeug* merci
bis zum nächsten mal *verbeug*


Powered by: JBB v.2.0.4 Copyright ©2000-2006, www.javarea.de.