[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
 OpenForum.dk • Vis emne - Give en boks en anden farve end alle de andre bokse

Give en boks en anden farve end alle de andre bokse

Spørgsmål og svar om installation af osCommerce standardpakke.
Problemer med contribution kan indlægges i Contributions.

Redaktør: Redaktionen

Give en boks en anden farve end alle de andre bokse

Indlægaf LeonN » 2009-08-21 22:50

Kære osC orakler

Jeg har problemer med at lokalisere noget HTML-kode hvor class’erne indgår, jf. nedenfor.

-------

<!-- categories //-->
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="12" height="15"></td>
<td width="100%" height="14" class="infoBoxHeading2">Varegrupper</td>
<td height="14" class="infoBoxHeading2" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
<tr>

-
-
-
-
<!-- categories eof//-->

Kodestumpen er fra index.php, og er blot copy/paste ved at højreklikke på hjemmesiden og derefter vælg ”Vis kilde”. Det viser noget af den kode der generer Categories/Varegruppe i index.php, og det er det samme for de andre bokse, som f.eks. information og tilbud osv.

Jeg har søgt med lys og lygte i de relevante filer til den osCommerceshop jeg arbejder i, men uden held. F.eks. var jeg sikker på, at denne del af koden skulle findes i index.php, men nej, sådan spiller klaveret ikke!

Mit spørgsmål er så, hvor kan jeg finde denne HTML-kode, for den må da komme et sted fra?

Jeg ved at class’en infobox er at finde i stylesheet.css, men i hvilken fil den tilhørende HTML-kode findes (som f.eks. overstående kodestump markeret med rød), kunne jeg meget godt tænke mig at vide….

Baggrunden er, at jeg gerne vil tildele en bestemt boks en bestemt farve, og til dette skal jeg kunne definere en class til denne bestemte boks. Altså, farven mv. defineres i stylesheet.css med f.eks. .infobox2, og class’en infobox2 sættes ind i en HTML-kode som så ”peger på” den bestemte boks.

Jeg håber det giver, bare lidt, mening ;-)

På forhånd tak!
Mvh. Leon
LeonN
Novice
Novice
 
Indlæg: 17
Tilmeldt: 2006-10-23 20:10
Geografisk sted: København

Re: Give en boks en anden farve end alle de andre bokse

Indlægaf benilope » 2009-08-22 23:44

I dit stylesheet skal du finde class="infoBox" kopier den og sæt den nedenunder og ændre navnet eks. class="min_infoBox" så skal du bare alle de filer igennem hvor den infobox er og så skifter du navnet fra class="infoBox" til class="min_infoBox" - det skal nok give et par timer inden du er færdig :)
_________________
Inden du spørger i forum:
1. Hvilken OSC anvender du
2. Læs først vejledningen
3. Læs i forum om dit spørgsmål er besvaret tidligere
4. Brug søgefunktionen
_____________________
Failure is not an option
Brugeravatar
benilope
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 880
Tilmeldt: 2005-08-12 20:10
Geografisk sted: Krusaa

Re: Give en boks en anden farve end alle de andre bokse

Indlægaf LeonN » 2009-08-24 16:50

Mvh. Leon
LeonN
Novice
Novice
 
Indlæg: 17
Tilmeldt: 2006-10-23 20:10
Geografisk sted: København


Tilbage til Installation og konfiguration

Hvem er online

Brugere der læser dette forum: Bing [Bot], Majestic-12 [Bot] og 19 gæster

cron