Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Legea 18/1968 Se mai aplica?

Digi conectare 2 routere prin fir

Succesiune notar versus instanta ...

Montaj aer conditionat in balcon ...
 Cont curent mulți valuta far...

Sugestii plan casa

Experiente cu firme care cumpara ...

joc idem Half Life gratis
 PC game stream catre Nvidia Shiel...

Pompa de apa HEPU ?!

Vreau o masina electrica de tocat...

Cum ajunge remorca de tir inapoi ...
 Alt "Utilizator nou" pe T...

ULBS INFORMATICA

Index preturi

Boxa membrana tweeter infundata
 

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,688
  • Î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

Neurochirurgie minim invazivă Neurochirurgie minim invazivă

"Primum non nocere" este ideea ce a deschis drumul medicinei spre minim invaziv.

Avansul tehnologic extraordinar din ultimele decenii a permis dezvoltarea tuturor domeniilor medicinei. Microscopul operator, neuronavigația, tehnicile anestezice avansate permit intervenții chirurgicale tot mai precise, tot mai sigure. Neurochirurgia minim invazivă, sau prin "gaura cheii", oferă pacienților posibilitatea de a se opera cu riscuri minime, fie ele neurologice, infecțioase, medicale sau estetice.

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