elite_thut
-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by elite_thut
-
-
Option forms
in CSS
I am not talking about this...but nevermindYou can use the <span> tag like<!-- html code --><span class="yourClass">bla bla bla</span>/*** yourSheet.css ***//**** xyForm.php ****/.yourClass a:hover { color: #000000;}
-
Option forms
in CSS
Hi,I wanted to know if it's possible to do something with css that does this:When you put your mouse over an option field, it's doesn't put it in blue...Thanks
-
Yeah..I tryed that...it doesn't work...same problem as beforetry this, it will be more efficient:if ($_GET["lang"]=="en" || $_COOKIE["langd3"]=="en" || !isset($_COOKIE["langd3"]) && !isset($_GET["lang"])){ require("forums/SSI.php"); require("header.php"); require("rightsidebar.php"); require("content.php"); require("footer.php");}else if ($_GET["lang"]=="fr" || $_COOKIE["langd3"]=="fr"){ require("forums/SSI.php"); require("header.php"); require("rightsidebar.php"); require("contenu.php"); require("footer.php");}
that checks if the cookie isnt AND the get variable isnt set.
-
SOLVEDOK...I solved my problem. I just used switch instead of if/else if
-
Yeah...that's a good idea...I'm gona try this right away!------------------------------------------------------------------------------------I tried it... and it worked (almost) I have another problem... At least I found the problem but I'm not able to solve it.Ok...so if my code is like this:I suggest that alongside the cookie, you use a GET variable on the targeted page. The PHP will throw English if no GET variable is set and no Cookie is found. The GET variable will ensure the first time the page displays correctly and the cookie will ensure future visits will use the selected language. Btw this method also allows the user to bookmark the page in a language of their choise, instead of relying on the cookie.if ($_GET["lang"]=="fr" || $_COOKIE["langd3"]=="fr"){ require("forums/SSI.php"); require("header.php"); require("rightsidebar.php"); require("contenu.php"); require("footer.php");}else if ($_GET["lang"]=="en" || $_COOKIE["langd3"]=="en"){ require("forums/SSI.php"); require("header.php"); require("rightsidebar.php"); require("content.php"); require("footer.php");}
When I use this code, if I select french, it works the first time, but if I select english it works only if I select it, and then reload the page.But if I use that code:
if ($_GET["lang"]=="en" || $_COOKIE["langd3"]=="en"){ require("forums/SSI.php"); require("header.php"); require("rightsidebar.php"); require("content.php"); require("footer.php");}else if ($_GET["lang"]=="fr" || $_COOKIE["langd3"]=="fr"){ require("forums/SSI.php"); require("header.php"); require("rightsidebar.php"); require("contenu.php"); require("footer.php");}
When I use that code, if I select english it works the first time, but if I select french, I need to reload the page after for it to work.Can you help me out? PLEASE
-
Hi,on my website, I want to have a drop down menu where you can select English or French...Then as soon as you make your choice, it ads a cookie with the value of your choice (so if you come back later it's the good language) and it reloads the page with the good language.But I don't know why, when my page is, for example in English, and I select French, the page reloads but it's in English. But if I reload the page manually then, it will be in French. I hope I was clear...Please help me out with this one. Here's my code...
///////////////// The form ////////////////<div style="color:#f2c114; float:right; position:relative; right:2%;"><form method="post" name="changelang" action="<?php cookie() ?>" style="padding:0; margin:0;">Language: <select name="lang" onChange="submit()" style="font-size:100%"> <option value="no" selected="selected"><u>Select</u></option> <option value="en">English</option> <option value="fr">Français</option>'; </select></form></div>//////////////////////////// The cookie() function////////////////////////////function cookie(){if ($_COOKIE['lang'] == ""){ setcookie("lang", "en", time()+70000);}if (isset($_POST['lang'])){if ($_POST['lang'] == "fr") { setcookie("lang", "fr", time()+70000); }else if ($_POST['lang'] == "en") { setcookie("lang", "en", time()+70000); }}}////////////////////// The index page//////////////////////<?phpif ($_COOKIE['lang'] == "" || $_COOKIE['lang'] == "en"){ require("forums/SSI.php"); require("header.php"); require("rightsidebar.php"); require("content.php"); require("footer.php");}if ($_COOKIE['lang'] == "fr"){ require("forums/SSI.php"); require("header.php"); require("rightsidebar.php"); require("contenu.php"); require("footer.php");}?>
Thanks a lot.
-
Hi,I switched from html to xhtml a few months ago... but now I'm having this problem... When I went to validator.w3.org it says that OnClick is not valid XHTML 1.0 Transitional.But I really need this function.Can I replace it by something else that is valid?Edit: Oh and I use it i a <b> element.
[...] <td class="menu_header"><b class="header" onClick="expandcontent(this, 'sc1')">Community</b></td> </tr> </tbody></table>[...]
LOL...sorry found my mistake... it's because I was writing onClick and not onclick.
-
Thanks a lot guys... I'm gona go try all of this. But not now...lol Here it's guetting late...
-
I have a question You First have to take a look at this to understand my question...Go on [url="http://newd2event.net"]this link[/url] then put your mouse on a menu element and look at where it links...It links at something like this ...[i]http://newd2event.net/index.php?id=characters[/i]or[i]http://newd2event.net/index.php?id=bosses[/i]or[i]http://newd2event.net/index.php?id=druid[/i]And when it's [color="green"]/index.php?id=this[/color]it's the same page as[color="green"]/index.php?id=that[/color]but the content(text) is differentI would like to know what it is exactly... is it just a link to a page but they make the page identical(1)?or is it the same page but with php, it changes the text (2)...[i]If the answer to my first question is (1) :[/i]How does it work exactly, how can we link it php.[i]And if the answer is (2) :[/i]How can we do that, do you know of a tutorial, or could you explain it vaguely.And by the way, I'm not new to php... I have to say I'm quite advanced (even if I don't look like...especially in this post )So if you can explain it to me you just have to give me the main idea and I'll be fine.
I don't know if we can do this...
in CSS
Posted
Hi,I would like to know if there was a way to use css (or anything else but I think that if we can do this, it's with css) to make it possible to write over an image, to make like if the image was not there (yes I know that we can use background but I need to do it with <img>).