Kleine Vragen Topic #1

Gestart doorLennard4.284 reacties15.585 weergaven

4.285 berichten · pagina 90 van 286

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sjoerd schreef:
Kun je niet iets doen als dit:
( SELECT titel, nieuws FROM gtst_nieuws WHERE titel LIKE %".$_SESSION[term]."% )
                   UNION all
                   ( SELECT titel, pagina FROM gtst_paginas WHERE titel LIKE %".$_SESSION[term]."% )


Thnx, je bent fantastisch! biggrin
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zodra ik met mijn muis over een menu item ga dan verplaats de menu tekst.

Html:
Spoiler tonen
div id="menu">
        <ul>
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#">Home</a></li>
            <li><a href="#">Home</a></li>
            <li><a href="#">Home</a></li>
        </ul>
    </div>
Css:
Spoiler tonen
#menu {
    margin-left: 70px;
    margin-top: 40px;
    float: left;
}
#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#menu li {
    float: left;
}
#menu li a{
    display: block;
    color: #93a2b1;
    text-decoration: none;
    font-size: 15pt;
    font-family: arial;
    padding: 10px;
    padding-left: 14px;
    margin-top: -1px;
}
#menu li a:hover{
    background: url(../images/hover.png) no-repeat;
    height: 29px;
    width: 80px;
    line-height:10px;
    margin-top: 5px;
    
}
#menu li.active a{
    background: url(../images/hover.png) no-repeat;
    border-radius: 10px;
    height: 29px;
    width: 80px;
    line-height:10px;
    margin-top: 5px;
    margin-left: 14px;
}
Wie kan me helpen
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Voorbeeld?
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nope

toevoeging op 2 september 2012, 19:01:39:
precies de goede afmeting
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
height: 29px;
width: 80px;

Heb je als je er over gaat, en anders niet dus wat denk je zelf dan dat hij groter word..
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waarom werkt dit niet, het geeft witte pagina weer terwijl het een button moet zijn...

[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700])
{[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]like[/COLOR][COLOR= #007700]]))
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]Oke[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] Like ten eerste dit account: <a href="https://www.facebook.com/HumorAlarm">[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<form><input type="submit" name="like"></form>[/COLOR][COLOR= #007700];
        }
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
?>

<form method="post" action="#">
    <input type="submit" value="Ja ik wil winnen!>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Omdat je input fout is. Herkijk hem dan ook =_=
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oh, " vergeten
0
Berichten
4.367
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Antonn schreef:
height: 29px;
width: 80px;

Heb je als je er over gaat, en anders niet dus wat denk je zelf dan dat hij groter word..
Zodra ik de width weghaal dan is de img niet meer goed.
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Desire schreef:
Eerdere citaten tonen
Antonn schreef:
height: 29px;
width: 80px;

Heb je als je er over gaat, en anders niet dus wat denk je zelf dan dat hij groter word..

Zodra ik de width weghaal dan is de img niet meer goed.
Zet hem dan ook bij diegene zonder width ._.
0
Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Antonn schreef:
Eerdere citaten tonen
Desire schreef:
Eerdere citaten tonen
Antonn schreef:
height: 29px;
width: 80px;

Heb je als je er over gaat, en anders niet dus wat denk je zelf dan dat hij groter word..

Zodra ik de width weghaal dan is de img niet meer goed.
Zet hem dan ook bij diegene zonder width ._.
Je bent nogal onduidelijk wink.

Ik zou elke
  • een vaste breedte meegeven waarbinnen de hover past. Ook de hover PRECIES de breedte geven van het plaatje.
  • 0
    Berichten
    7.681
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Op mijn website moet je je geboorten datum invullen.En dan heb ik nu zoiets:

    [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/for"]for[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++):[/COLOR] ?>
                    <option value="<?=$i?>"><?=$i?></option>
                [COLOR= #0000BB]<?php[/COLOR] endfor[COLOR= #007700];[/COLOR] ?>


    Maar het probleem daar mee is dat hij er heel lang over doet om te laden.
    Is er hier een snellere manier voor??

    Antwoord:

    [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/for"]for[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]1911[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]--):[/COLOR] ?>
                    <option value="<?=$i?>"><?=$i?></option>
                [COLOR= #0000BB]<?php[/COLOR] endfor[COLOR= #007700];[/COLOR] ?>
    0
    Berichten
    13.482
    Reputatie
    0
    Punten
    0,00
    Lid sinds
    Laatst gezien
    Ik snapte al niet wat je probeerde.. Die eerste for-loop blijft maar draaien. $i = 2012, $i is dus altijd meer dan 100, en dus blijft hij ook non-stop draaien..
    0

    Jouw reactie

    Deel je idee, stel een vraag of help een ander verder.

    Editor laden…

    Praat mee met de One2xs-community.

    Inloggen om te reageren