Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
La multi ani @MariusEXxTREME!

Temperatura AC

Sunt sigure bolurle de plastic (B...

Dimensionare putere centrala / ca...
 Impamantare suplimentara

Scartiei frana fata bicicleta noua

Instalare aer conditionat in apar...

Telefoane prietenoase cu vederea?
 Alegere teava pentru incalzire pr...

Opinia publica despre medici/ asi...

Senzor Temp PMOD-TMP3 cu TCN75A

Amazing Race
 Recomandare fosa ecologica

La multi ani @LouisCyphre!

Vinieta Bulgaria Online

Investitie imobiliara in strainat...
 

merge perfect in Firefox dar nu la fel de bine in IE6 si IE7

- - - - -
  • Please log in to reply
7 replies to this topic

#1
Sterus

Sterus

    Member

  • Grup: Members
  • Posts: 332
  • Înscris: 04.07.2007
ca sa nu mai deschid un nou topic postez in acesta....am o problema asemanatoare

acum merge perfect in Firefox dar nu la fel de bine in IE6 si IE7

<div id="head"><div id="navi"><ul class="nav">
												<li><a href="#">link</a></li>
												<li><a href="#">link</a></li>
												<li><a href="#">link</a></li>
												<li><a href="#">link</a></li>
												<li><a href="#">link</a></li>
												<li><a href="#">link</a></li>
							 </ul>
			  </div>
</div>




<style type="text/css">
* {margin:0; padding:0}

#head {
	float:left; 
	width:890px; 
	background:#b70909}

#navi {
	float:left; 
	width:890px; 
	background:#820708; 
	border-top:1px solid black; 
	border-bottom:1px solid black; 
	margin:5px 0px}

ul.nav {
	float:left; 
	width:770px; 
	background:#820708; 
	padding: 9px 0px 0px 70px}

ul.nav li {
	float:left; 
	list-style:none;
	height:31px;}

ul.nav a {
	text-decoration:none;
	color:#fff;
	font-family:verdana, arial, sans-serif;
	font-size:14px;
	font-weight:bold;
	font-variant:small-caps;
	padding:11px 40px 12px 40px}

ul.nav a:hover {
	background:#b70909;
	border-top:6px solid #b70909;
	border-bottom: 6px solid #CC3300}


</style>


#2
sergiu_spooky

sergiu_spooky

    Senior Member

  • Grup: Senior Members
  • Posts: 3,738
  • Înscris: 23.06.2006
Nu ai cum să îl faci bine pentru ie6 doar cu liste, ai nevoie de markup suplimentar. Dacă te uiți pe cssplay vezi că sunt folosite comentarii condiționale pentru a insera tabele.

#3
Sterus

Sterus

    Member

  • Grup: Members
  • Posts: 332
  • Înscris: 04.07.2007
:)..sincer sa fiu nu am inteles ce vrei sa zici

PS: a sters cineva din topic?

Edited by Sterus, 05 April 2009 - 22:18.


#4
OriginalCopy

OriginalCopy

    I'm harmful, fear me please! :))

  • Grup: Senior Members
  • Posts: 27,268
  • Înscris: 10.08.2006

View PostSterus, on Apr 5 2009, 22:03, said:

:) ..sincer sa fiu nu am inteles ce vrei sa zici

PS: a sters cineva din topic?

Nu a sters nimeni din topic, i-am dat split, e deja o alta problema, asemanatoare ce-i drept, dar alta.

#5
Sterus

Sterus

    Member

  • Grup: Members
  • Posts: 332
  • Înscris: 04.07.2007
se poate rezolva cu un artificiu js de genul acesta?

<attach event="ondocumentready" handler="parseStylesheets" />
<script>
/**
 *	Whatever:hover - V2.02.060206 - hover, active & focus
 *	------------------------------------------------------------
 *	(c) 2005 - Peter Nederlof
 *	Peterned - http://www.xs4all.nl/~peterned/
 *	License  - http://creativecommons.org/licenses/LGPL/2.1/
 *
 *	Whatever:hover is free software; you can redistribute it and/or
 *	modify it under the terms of the GNU Lesser General Public
 *	License as published by the Free Software Foundation; either
 *	version 2.1 of the License, or (at your option) any later version.
 *
 *	Whatever:hover is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 *	Lesser General Public License for more details.
 *
 *	Credits and thanks to:
 *	Arnoud Berendsen, Martin Reurings, Robert Hanson
 *
 *	howto: body { behavior:url("csshover.htc"); }
 *	------------------------------------------------------------
 */

var csshoverReg = /(^|\s)((([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active))|((a|input|textarea)([#.][^ ]+)?:unknown)/i,
currentSheet, doc = window.document, hoverEvents = [], activators = {
	onhover:{on:'onmouseover', off:'onmouseout'},
	onactive:{on:'onmousedown', off:'onmouseup'},
	onunknown:{on:'onfocus', off:'onblur'}
}

function parseStylesheets() {
	if(!/MSIE (5|6)/.test(navigator.userAgent)) return;
	window.attachEvent('onunload', unhookHoverEvents);
	var sheets = doc.styleSheets, l = sheets.length;
	for(var i=0; i<l; i++) 
		parseStylesheet(sheets[i]);
}
	function parseStylesheet(sheet) {
		if(sheet.imports) {
			try {
				var imports = sheet.imports, l = imports.length;
				for(var i=0; i<l; i++) parseStylesheet(sheet.imports[i]);
			} catch(securityException){}
		}

		try {
			var rules = (currentSheet = sheet).rules, l = rules.length;
			for(var j=0; j<l; j++) parseCSSRule(rules[j]);
		} catch(securityException){}
	}

	function parseCSSRule(rule) {
		var select = rule.selectorText, style = rule.style.cssText;
		if(!csshoverReg.test(select) || !style) return;
		
		var pseudo = select.replace(/[^:]+:([a-z-]+).*/i, 'on$1');
		var newSelect = select.replace(/(\.([a-z0-9_-]+):[a-z]+)|(:[a-z]+)/gi, '.$2' + pseudo);
		var className = (/\.([a-z0-9_-]*on(hover|active|unknown))/i).exec(newSelect)[1];
		var affected = select.replace(/:(hover|active|unknown).*$/, '');
		var elements = getElementsBySelect(affected);
		if(elements.length == 0) return;

		currentSheet.addRule(newSelect, style);
		for(var i=0; i<elements.length; i++)
			new HoverElement(elements[i], className, activators[pseudo]);
	}

function HoverElement(node, className, events) {
	if(!node.hovers) node.hovers = {};
	if(node.hovers[className]) return;
	node.hovers[className] = true;
	hookHoverEvent(node, events.on, function() { node.className += ' ' + className; });
	hookHoverEvent(node, events.off, function() { node.className = node.className.replace(new RegExp('\\s+'+className, 'g'),''); });
}
	function hookHoverEvent(node, type, handler) {
		node.attachEvent(type, handler);
		hoverEvents[hoverEvents.length] = { 
			node:node, type:type, handler:handler 
		};
	}

	function unhookHoverEvents() {
		for(var e,i=0; i<hoverEvents.length; i++) {
			e = hoverEvents[i]; 
			e.node.detachEvent(e.type, e.handler);
		}
	}

function getElementsBySelect(rule) {
	var parts, nodes = [doc];
	parts = rule.split(' ');
	for(var i=0; i<parts.length; i++) {
		nodes = getSelectedNodes(parts[i], nodes);
	}	return nodes;
}
	function getSelectedNodes(select, elements) {
		var result, node, nodes = [];
		var identify = (/\#([a-z0-9_-]+)/i).exec(select);
		if(identify) {
			var element = doc.getElementById(identify[1]);
			return element? [element]:nodes;
		}
		
		var classname = (/\.([a-z0-9_-]+)/i).exec(select);
		var tagName = select.replace(/(\.|\#|\:)[a-z0-9_-]+/i, '');
		var classReg = classname? new RegExp('\\b' + classname[1] + '\\b'):false;
		for(var i=0; i<elements.length; i++) {
			result = tagName? elements[i].all.tags(tagName):elements[i].all; 
			for(var j=0; j<result.length; j++) {
				node = result[j];
				if(classReg && !classReg.test(node.className)) continue;
				nodes[nodes.length] = node;
			}
		}	
		
		return nodes;
	}
</script>


#6
Sterus

Sterus

    Member

  • Grup: Members
  • Posts: 332
  • Înscris: 04.07.2007
nicio idee...nimic?

#7
Talkabout

Talkabout

    Senior Member

  • Grup: Senior Members
  • Posts: 5,695
  • Înscris: 20.09.2006
IE asta sucks, ma enerveaza la culme si pe mine atunci cand fac development.. au fost chestii la care mi-am batut capu zile intregi sa le gasesc buba. ma gandeam sa introduc in documentatia siteului un sfat: clientii sa nu mai foloseasca IE, ci Mozilla

#8
Sterus

Sterus

    Member

  • Grup: Members
  • Posts: 332
  • Înscris: 04.07.2007
:))..asta-i buna

Anunturi

Second Opinion Second Opinion

Folosind serviciul second opinion ne puteți trimite RMN-uri, CT -uri, angiografii, fișiere .pdf, documente medicale.

Astfel vă vom putea da o opinie neurochirurgicală, fără ca aceasta să poată înlocui un consult de specialitate. Răspunsurile vor fi date prin e-mail în cel mai scurt timp posibil (de obicei în mai putin de 24 de ore, dar nu mai mult de 48 de ore). Second opinion – Neurohope este un serviciu gratuit.

www.neurohope.ro

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate