Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

problem sa <style> tagom

[es] :: Web dizajn i CSS :: problem sa <style> tagom

[ Pregleda: 3874 | Odgovora: 14 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Thumbsucker

Član broj: 33437
Poruke: 96
80.65.91.*



Profil

icon problem sa <style> tagom17.12.2004. u 19:38 - pre 243 meseci
Imam jednu stranicu index.php uradenu u html-u i ona ima elemenat <style> kojim je uredeno kakve boje ce biti link(hover,active,visited).
U tu stranicu includujem shownews.php file iz skripte za novosti.
Problem je slijdedeci:
Svi linkovi ciji je kod ureden u index.php file se ponasaju ok, prema style elementu, dakle boja im je uredu.
Medutim linkovi koje generise shownews.php file nisu boje koja je zadana u style elementu iako bi trebali biti.
Sve je uredu, dakle i linkovi koje generise shownews.php file se ponasaju prema style elementu kada se stranica otvara u mozilla firefoxu, medutim u internet exploreru to nije slucaj jer linkovi iz shownews.php file dobiju onu ruznu default boju(tamno ljubicasta)
Kako se moze ovaj problem rijesiti, dakle da se isto ponasa stranica i u firefoxu i u iexploreru.
Hvala!!!
 
Odgovor na temu

lenny
Lendak Imre
saradnik, FTN, Novi Sad
NS

Član broj: 3147
Poruke: 68
*.ftn.ns.ac.yu.

ICQ: 158238713


Profil

icon Re: problem sa <style> tagom17.12.2004. u 19:57 - pre 243 meseci
Šta imaš u tom style tag-u?

Možda bi bilo dobro da daš sav kod, ili barem relevantan deo, i to za oba fajla. Ovako zvuči kao prilično čudan i nedovoljno dobro objašnjen problem.
No signature...
 
Odgovor na temu

Ilija Studen
Novi Sad

Član broj: 3864
Poruke: 859
*.ftn.ns.ac.yu.

Sajt: www.activecollab.com


+1 Profil

icon Re: problem sa <style> tagom17.12.2004. u 21:50 - pre 243 meseci
Ovaj problem nema nikakve veze sa PHPom.

Pošalji ceo dokument (generisan).
http://www.activecollab.com - Alat za upravljanje projektima
 
Odgovor na temu

Thumbsucker

Član broj: 33437
Poruke: 96
80.65.91.*



Profil

icon Re: problem sa <style> tagom19.12.2004. u 17:32 - pre 243 meseci
E ovako, u elementu <style> nalazi se:

Code:
<style type="text/css">
<!--
a:link {
    color: #2e7bbf;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #2e7bbf;
}
a:hover {
    text-decoration: none;
    color: #7AAEDC;
}
a:active {
    text-decoration: none;
    color: #CCCCCC;
}
.style1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
}
.style2 {color: #2e7bbf}
.style3 {color: #000000}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000; }
-->
</style>


A u templateu skripte za novosti(cute php):

Code:
<table border="0" width="220" cellspacing="1" cellpadding="3">
<tr>
<td width="100%" style="text-align:justify">
<b>{title}</b>
</td>
</tr>
<tr>
<td width="100%" style="text-align:justify">
<font style="font-family:georgia, verdana, arial, sans-serif;    color:#666; font-size:14;">{short-story}</font></td>
</tr>
<tr>
<td width="100%">
<table border="0" style="border-top: 1px dotted #f2f3f3" width="408" cellspacing="0">
<tr>
<td width="220"><i><font style="font-family:georgia, verdana, arial, sans-serif; font-size:11;    color:black;">{date} by {author}</font></i><br> </td><td width="168" ><div align=right>
<font style="font-family:georgia, verdana, arial, sans-serif; font-size:11;">[full-link]Read More ...[/full-link]    [com-link]comments ({comments-num})[/com-link]</font><br> 
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />


Problem je dakle sto se link [full-link] ne ponasa prema style elementu samo u internet exploreru, dok je u mozilli firefoxu sve uredu.

[Ovu poruku je menjao bluesman dana 20.12.2004. u 13:10 GMT+1]
 
Odgovor na temu

Br@nkoR
http://localhost

Član broj: 2597
Poruke: 1603

Sajt: localhost


+23 Profil

icon Re: problem sa <style> tagom20.12.2004. u 09:48 - pre 243 meseci
Pošalji, kako što je rekao Ilija Studen generisanu stranu, jer ukoliko [full-link]Read More ...[/full-link] zamenim sa <a href="#">Read More...</a> sve radi normalno.
Banned - Not available
 
Odgovor na temu

Thumbsucker

Član broj: 33437
Poruke: 96
80.65.91.*



Profil

icon Re: problem sa <style> tagom20.12.2004. u 10:02 - pre 243 meseci
Code:
<a href="#" onclick="window.open('http://mojastranica.com/novost...ve=&amp;template=Novosti-L', '_News', 'HEIGHT=400,WIDTH=400,resizable=yes,scrollbars=yes');return false;">
Pročitaj više...</a>


Ovo je generisan kod za link koji se ne ponasa kako treba...

[Ovu poruku je menjao bluesman dana 20.12.2004. u 13:10 GMT+1]
 
Odgovor na temu

Thumbsucker

Član broj: 33437
Poruke: 96
80.65.91.*



Profil

icon Re: problem sa <style> tagom20.12.2004. u 10:08 - pre 243 meseci
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Duvački Orkestar Zenica</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<style type="text/css">
<!--
a:link {
color: #2e7bbf;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #2e7bbf;
}
a:hover {
text-decoration: none;
color: #7AAEDC;
}
a:active {
text-decoration: none;
color: #CCCCCC;
}
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
}
.style2 {color: #2e7bbf}
.style3 {color: #000000}
.style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; color: #000000; }
-->
</style></head>

<body><script src="http://100webads.com/banners/tooltip.js"></script>
<div id='divtxl' width="781" align="center" style="position: absolute; z-index: 1000; top: 0; padding:0px 0px 0px 0px; color: #D4D4D4">
<table width="779" border="0" cellspacing="0" cellpadding="0" style="text-align: center">
<tr>
<td width="4"><img src="http://100webads.com/banners/left_corner.gif" width="4" height="22"></td>

<td bgcolor="#D4D4D4" background="http://100webads.com/banners/bg.gif" align="center" height="22" style="font: Tahoma; font-size: 11px; color: #D4D4D4; bgcolor: #D4D4D4; background: url(http://100webads.com/banners/bg.gif); text-align: center">
<a href="http://www.100webspace.com" title="100mb free web space" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">100mb free web space</a>&nbsp;|
<a href="http://www.lonex.com" title="web hosting by lonex" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting by lonex</a>&nbsp;|
<a href="http://www.zettahost.com" title="website hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">website hosting</a>&nbsp;|
<a href="http://www.fateback.com" title="free web hosting by fateback" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">free web hosting by fateback</a>&nbsp;|
<a href="http://www.valueweb.com" title="web hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting</a>&nbsp;|
<a href="http://www.motion-hosting.com" title="linux hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">linux hosting</a>&nbsp;|
<a href="http://www.ipowerweb.com" title="web hosting" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">web hosting</a>&nbsp;|
<a href="#" style="font-weight: normal; font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onmouseover="on_eo(event,'tt1','show')" onmouseout="on_eo(event,'tt1','fade_hide')">links</a>
</td>

<td width="3"><img src="http://100webads.com/banners/right_corner.gif" width="3" height="22"></td>
</tr>
</table>
</div>
<div id='tt1' style="font-family: Tahoma; font-size: 11px; font-weight: normal; color: #000000; text-decoration: none; background-color: #FFFCCC; border-style: Solid; border-color: #000000; border-width:1 1 1 1; position: absolute; display: none; width: 250px; padding: 5 5 5 5;" onMouseOver="on_eo(event,this.id,'pause');" onMouseOut="on_eo(event,this.id,'fade_hide');">
<div align='left'><a href="http://www.cheaphostingdirectory.com" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">cheap web hosting</a></div>
<div align='left'><a href="http://www.websitehostdirectory.com" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">website hosting</a></div>
<div align='right'><a href="http://www.100webspace.com/advertising.html" target="_blank" style="font-family:Tahoma; color:#000000; font-size:11px; text-decoration: none;" onMouseOver="this.style.color = '#0098F6'" onMouseOut="this.style.color = '#000000'">online advertising</a></div>
</div>
<script language="JavaScript">
<!--
// Width = 779;
// Get browser ...
function checkBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}
var bw = new checkBrowser();
// Get page size ...
var PageWidth = (bw.ns4 || bw.ns5) ? innerWidth : document.body.offsetWidth - 20;
var PageHeight = (bw.ns4 || bw.ns5) ? innerHeight : document.body.offsetHeight - 20;
// Get our layer ...
var my_div = document.getElementById('divtxl');
// Fix stuff ...
if (parent && (PageWidth < 300 || PageHeight < 200)) {
my_div.style.display = "none";
}
else {
my_div.style.left = (PageWidth - 781) / 2;
document.write('<div align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td height="22" style="font: Tahoma; font-size: 11px; color: #D4D4D4;">&nbsp;</td></tr></table></table></div>\n');
}
-->

</script>

<table width="700" height="373" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="90"><img src="slike/naslov.jpg" width="700" height="100"></td>
</tr>
<tr>
<td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="51%" height="20"><span class="style1">&nbsp;| <a href="http://www.google.com">O Nama</a> | <a href="http://www.google.com">Članovi</a> | <a href="forum">Forum</a> | <a href="http://www.google.com">Galerija</a> | <a href="http://www.google.com">Download</a> | <a href="http://www.google.com">Kontakti</a> |</span></td>

<td width="31%">&nbsp;</td>
<td width="18%">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td height="253" align="left" valign="top">
<table width="100%" height="219" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10" height="219" background="slike/crtica.gif">&nbsp;</td>

<td width="364">&nbsp;</td>
<td width="10" background="slike/crtica.gif">&nbsp;</td>
<td width="316" align="center" valign="top"><table border="0" width="100%">
<tr>
<td align="left">
<b><font face="verdana, arial" size="2" color="#2e7bbf"><b>Proba</b></font>
</td>
</tr>
<tr>
<td align="left">
<font face="verdana" size="1" color="#000000"><b>Proba proba proba Proba proba proba Proba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba probaProba proba proba</b></font></td>
</tr>

<tr>
<td>
<table border="0" width="100%">
<tr>
<td align="left">
<font face="verdana" size="1" color="#2e7bbf"><b>16 Dec 2004</b></font></td>
<td><div align=right>
<a href="#" onclick="window.open('http://suckhead.freeserverhost...ve=&amp;template=Novosti-L', '_News', 'HEIGHT=400,WIDTH=400,resizable=yes,scrollbars=yes');return false;">
<img src="novosti/skins/images/vise.gif"></a></div></td></tr></table>
</td>
</tr>
<tr><td width="100%" height="5" background="novosti/skins/images/crtica.gif"></td></tr>
</table><table border="0" width="100%">
<tr>
<td align="left">
<b><font face="verdana, arial" size="2" color="#2e7bbf"><b>Obavještenje</b></font>

</td>
</tr>
<tr>
<td align="left">
<font face="verdana" size="1" color="#000000"><b>Obavještavamo sve posjetioce naše web stranice da &#263;e ista biti u funkciji za nekoliko dana. Hvala na razumjevanju i posjetite nas opet!</b></font></td>
</tr>
<tr>
<td>
<table border="0" width="100%">
<tr>
<td align="left">
<font face="verdana" size="1" color="#2e7bbf"><b>03 Dec 2004</b></font></td>
<td><div align=right>
<!-- no full story--></div></td></tr></table>

</td>
</tr>
<tr><td width="100%" height="5" background="novosti/skins/images/crtica.gif"></td></tr>
</table><!-- News Powered by CuteNews: http://cutephp.com/ --></td>
</tr>
</table>

<table width="57%" height="18" border="0" cellpadding="0" cellspacing="0" bordercolor="#2e7bbf">
<tr>
<td height="18" align="left" class="style1 style2"><span class="style3">&nbsp;|</span> WDesign by NI <span class="style4">|</span> Broj posjetioca:
<font color="#2e7bbf" face="verdana" size="1"><b>39</b></font> <span class="style4">|</span></td>

</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" height="20" background="slike/crtica.gif">&nbsp;</td>
<td width="364">&nbsp;</td>
<td width="10" background="slike/crtica.gif">&nbsp;</td>
<td width="316">&nbsp;</td>
</tr>

</table></td>
</tr>
</table>
<script type="text/javascript" language="javascript" src="http://counter.fateback.com/java.php?user=10003"></script><noscript><a href="http://counter.fateback.com" target="_blank"><img src="http://counter.fateback.com/webstat.php?user=10003" alt="counter" border="0"/></a></noscript></body>
</html>
 
Odgovor na temu

Thumbsucker

Član broj: 33437
Poruke: 96
80.65.91.*



Profil

icon Re: problem sa <style> tagom20.12.2004. u 10:09 - pre 243 meseci
Ovo gore je cijeli dokument, a kod koji generise skripta je boldiran....
 
Odgovor na temu

Br@nkoR
http://localhost

Član broj: 2597
Poruke: 1603

Sajt: localhost


+23 Profil

icon Re: problem sa <style> tagom20.12.2004. u 10:25 - pre 243 meseci
Tebi se tu generiše slika a ne tekst:
<img src="novosti/skins/images/vise.gif">
Jedino što primećujem to je ljubičasti border oko slike, ukoliko je to problem dodaj ovo u css:
Code:

img {
border: 0;
}


[Ovu poruku je menjao Br@nkoR dana 20.12.2004. u 11:55 GMT+1]
Banned - Not available
 
Odgovor na temu

Thumbsucker

Član broj: 33437
Poruke: 96
80.65.91.*



Profil

icon Re: problem sa <style> tagom20.12.2004. u 11:17 - pre 243 meseci
Ma znam da mogu staviti border="0" , ali to nije rjesenje problema nego izbjegavanje.
Vise me zanima zasto taj kod IE interpretira drugacije od firefoxa...
 
Odgovor na temu

bluesman

Član broj: 4505
Poruke: 1895
*.14.eunet.yu.



+1 Profil

icon Re: problem sa <style> tagom20.12.2004. u 12:13 - pre 243 meseci
@Thumbsucker: Molim vas da koristite CODE /CODE umesto B /B
Goran Pilipović fka bluesman
 
Odgovor na temu

Br@nkoR
http://localhost

Član broj: 2597
Poruke: 1603

Sajt: localhost


+23 Profil

icon Re: problem sa <style> tagom20.12.2004. u 19:00 - pre 243 meseci
Citat:
Thumbsucker: Ma znam da mogu staviti border="0" , ali to nije rjesenje problema nego izbjegavanje.
Vise me zanima zasto taj kod IE interpretira drugacije od firefoxa...


Ups, pročitao sam poruku a zaboravio da odgovorim.
To je poznatu bug u IE-u.
Pogledan npr. ovo:
http://www.xefer.com/archive/2002/11/hoverbug

Pozdrav.
Banned - Not available
 
Odgovor na temu

Thumbsucker

Član broj: 33437
Poruke: 96
80.65.91.*



Profil

icon Re: problem sa <style> tagom21.12.2004. u 10:53 - pre 243 meseci
Hvala na korisnom odgovoru...
 
Odgovor na temu

[es] :: Web dizajn i CSS :: problem sa <style> tagom

[ Pregleda: 3874 | Odgovora: 14 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.