link vraagje

Gestart doorRobindb15 reacties72 weergaven

16 berichten · pagina 1 van 2

Robindb

Lid · Topicstarter

Berichten
538
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hey hoe kan ik aan deze code de kleur verander standaard is een Href link blauw

<div id="more" class="tools">
        
            <p><b><a id="more-link" title="Meer info" href="javascript:toggle();">Meer info</a></b></p>
            
        </div>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
color: #000;
0
Robindb

Lid · Topicstarter

Berichten
538
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja waar precies in de code?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Waar je het wil hé emoAls je de link die kleur wilt dan bij de link, wil je een andere tekst een kleur dan bij die tekst.
0
Berichten
1.282
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik doe altijd dit:

Codeblok (voorbeeld.php):

1
2
3
4
5

Meer info

0
Robindb

Lid · Topicstarter

Berichten
538
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Remontjuh schreef:
Ik doe altijd dit:
Codeblok (voorbeeld.php):

1
2
3
4
5

Meer info


dank precies wat ik zocht biggrin
toevoeging op 24 april 2014, 191118:
1 vraagje hoe maak ik dat hij dit allemaal zwart laat zien
Spoiler tonen
</div>
        <button onclick="goBack()">Ga terug</button>
        <div id="more" class="tools">
        
             <p><b><a id="more-link" title="Meer info" href="javascript:toggle();"><font color="black">Meer info</font></a></b></p>
            
        </div>
        <div id="more-info" class="tools">
        
            <ul>
            [COLOR= #0000BB]<?php[/COLOR] 
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><strong>Remote Port:</strong> <span>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$port[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</span></li>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><strong>Request Method:</strong> <span>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$method[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</span></li>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><strong>Server Protocol:</strong> <span>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$protocol[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</span></li>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><strong>Server Host:</strong> <span>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$host[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</span></li>[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><strong>User Agent:</strong> <span>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$agent[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</span></li>[/COLOR][COLOR= #007700];[/COLOR] 
                [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$proxy[/COLOR][COLOR= #007700])[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<li><strong>Proxy: <span>[/COLOR][COLOR= #007700].([/COLOR][COLOR= #0000BB]$proxy[/COLOR][COLOR= #007700]) ?[/COLOR] [COLOR= #0000BB]$proxy[/COLOR] [COLOR= #007700]:[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</span></li>[/COLOR][COLOR= #007700];[/COLOR]
                
                [COLOR= #0000BB]$time_start[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]([/COLOR]true[COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/usleep"]usleep[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]100[/COLOR][COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$time_end[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]([/COLOR]true[COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time_end[/COLOR] [COLOR= #007700]-[/COLOR] [COLOR= #0000BB]$time_start[/COLOR][COLOR= #007700];[/COLOR]
            ?>
            </ul>
            <p><small>het nam [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700];[/COLOR] ?> seconden in beslag om deze info te laten zien</small></p>
        </div>
        <script type="text/javascript">
            function hideStuff(){
                if (document.getElementById){
                    var x = document.getElementById(more-info);
                    x.style.display="none";
                }
            }
            function toggle(){
                if (document.getElementById){
                    var x = document.getElementById(more-info);      
                    var y = document.getElementById(more-link);      
                    if (x.style.display == "none"){
                        x.style.display = "";
                        y.innerHTML = "minder info";
                    } else {
                        x.style.display = "none";
                        y.innerHTML = "Meer info";
                    }
                }
            }
            window.onload = hideStuff;
        </script>
    </body>
</html>
0
Berichten
1.282
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Of je zet in de css

Codeblok (voorbeeld.php):

1
2
3
4
5
6
7
8
9

a:link {
color: black;
text-decoration: none;
}

a:hover {
color: black;
text-decoration: underline;
}
0
Robindb

Lid · Topicstarter

Berichten
538
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Remontjuh schreef:
Of je zet in de css
Codeblok (voorbeeld.php):

1
2
3
4
5
6
7
8
9

a:link {
color: black;
text-decoration: none;
}

a:hover {
color: black;
text-decoration: underline;
}
Afbeelding
hoe krijg ik dat ook zwart?
en die knopjes weg
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Gebruik gewoon color: #000; zoals ik zei, overal font-tag voor gebruiken is nógal omslachtig.

div.tools { color: #000; } div.tools a { color: #000; }
0
Robindb

Lid · Topicstarter

Berichten
538
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
dat werkt niet

<div id="tools" class="tools">
            <p><b>jouw IP:</b></p>
        </div>
        
        <div id="ip-lookup" class="tools">
            <h1>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$IP[/COLOR][COLOR= #007700];[/COLOR] ?></h1>
        </div>
        <button onclick="goBack()">Ga terug</button>
        <div id="more" class="tools">
        
             <p><b><a id="more-link" title="Meer info" href="javascript:toggle();"><font color="black">Meer info</font></a></b></p>
            div.tools { color: #000; } div.tools a { color: #000; }
        </div>
        <div id="more-info" class="tools">
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Omdat dit CSS is, en je dat niet zomaar lukraak tussen HTML kan plaatsen.
Haal die font-tag eerst eens weg.

begin dan bij; http://www.w3schools.com/css/DEFAULT.asp
0
Robindb

Lid · Topicstarter

Berichten
538
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Omdat dit CSS is, en je dat niet zomaar lukraak tussen HTML kan plaatsen.
Haal die font-tag eerst eens weg.

begin dan bij; http://www.w3schools.com/css/DEFAULT.asp
wist niet dat het css was sorry confusedschater
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Robindb schreef:
Eerdere citaten tonen
Aarclay schreef:
Omdat dit CSS is, en je dat niet zomaar lukraak tussen HTML kan plaatsen.
Haal die font-tag eerst eens weg.

begin dan bij; http://www.w3schools.com/css/DEFAULT.asp

wist niet dat het css was sorry confusedschater
Mooi moment om het te leren? Nietwaar?
0
Robindb

Lid · Topicstarter

Berichten
538
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Eerdere citaten tonen
Robindb schreef:
Eerdere citaten tonen
Aarclay schreef:
Omdat dit CSS is, en je dat niet zomaar lukraak tussen HTML kan plaatsen.
Haal die font-tag eerst eens weg.

begin dan bij; http://www.w3schools.com/css/DEFAULT.asp

wist niet dat het css was sorry confusedschater
Mooi moment om het te leren? Nietwaar?
ben ik al mee bezig bloos
toevoeging op 24 april 2014, 19:38:10:
er kan een slotje hierop begin het al te leren nerd
0
Berichten
4.214
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Remontjuh schreef:
Ik doe altijd dit:
Codeblok (voorbeeld.php):

1
2
3
4
5

Meer info


bestaat sinds HTML 5 niet meer, CSS is een veel betere oplossing.
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