User Profile
Collapse
-
Thanks. I'll look into that straight away ;) -
Centering two div tags
Hi.
I have two images with a caption underneath it. (like this example shows: CSS: figures & captions)
So, I want two or more images (with caption) to follow each other on the same line. The question really boils down to this:
How do I center two div tags that are on the same line?
I could do this in my CSS-file:
...Code:div.element { float: right; } -
Forgot to mention that if I have i.e. 9 images, I would like to be able to scroll the thumbnails (left and right button), since only 4 thumbnails can be displayed at the same time..Leave a comment:
-
Simple photo navigation
Hi.
How do I create a simple photo navigation system with this layout style:
Click here to view layout style
I want to make this for my website, and I don't mind using a script that someone else has made. Just need something fast and simple. :)
Thanks in advance :) -
I ended up doing this, and it works very well :)
Thanks alot. Not so difficult as it first seem ;)Code:session_start(); if(isset($_GET['lang'])) { $_SESSION['lang'] = $_GET['lang']; setlocale(LC_ALL, $_SESSION['lang']); } else { setlocale(LC_ALL, $_SESSION['lang']); }Leave a comment:
-
Hi, yes that works pretty well :D
but I also encountered another problem that I didn't figure out how to solve well (when trying to apply this to multiple pages within my site). I have, say, three pages one.php, two.php and three.php, and all of them now has this language selection bar:
...Code:<div id="navbar"><div class="langbar"><a href="?locale=en_US">English</a> | <a
Leave a comment:
-
Setting session variable with hyperlink
Hi.
I have a session variable stored within a cookie, and I want this to change when pressing a hyperlink.
i.e. I have this variable
This is set initially if it hasn't been set before using an if statement:Code:$_SESSION['language'] = 'en_US';
I want to set this variable...Code:if (! isset($_SESSION['language'])) { $_SESSION['language'] = 'en_US'; } -
-
Ah, Sorry about that :S I didn't realise I posted inside another thread :S
Hmm...
Can you please delete this thread? It looks silly now with this discussion.Leave a comment:
-
I wanted to ask a question, therefore I started this thread. What seems to be the problem?Leave a comment:
-
Hi again.
Thanks for adding the tags :) . Looks better now :)
I have encountered a different problem. (Which I also think I've just solved, lol xD ). But I do have some questions too.
What if the user doesn't have JavaScript (JS) enabled in his/her browser? Then the text fields and the calendar input would disappear. Of course one could assume that most users actually have JS enabled, but this would be escaping...Leave a comment:
-
PHP Form Validation + JavaScript + gettext
Hi. I'm doing a form at my website, and I found this document which is very interesting: Javascript form validation - doing it right .
I have a little question though. All the documents within my page has the *.php extention since I'm using PHP the most. I'm also using gettext to translate strings to other languages. If I want to translate the string "hello", I would write it like this in my *.php document:
...Code:<?php
-
Check this out: Using JDBC with MySQL, Getting Started
"Since both JDBC and MySQL are freely available for many purposes, the combination of JDBC and MySQL is a powerful combination that should be of interest for a wide variety of applications."
And if you need more information try asking our common friend google xDLeave a comment:
-
Okay. I got this figured out all by myself, and it was embarassingly easy. So, in order to make this post interesting for others, I'll explain what I did. (since it seems impossible to delete the post).
This JSP-script contain a function/method named DateInput, which takes the following parameters:
When fetching the data in PHP, I used a form with method="post"....Code:DateInput(DateName, Required*, DateFormat*, DefaultDate*)
Leave a comment:
-
Date Input Calendar
Hi.
I'm building a form for my webpage, and I'm using "Jason's Date Input Calendar" to allow the user to easily enter a date.
Here is the link to the website of the script:
Dynamic Drive DHTML Scripts- Jason's Date Input Calendar
It's all working visually, but I don't know how to fetch the dates from the form when I send the form a script. I don't know how to relate the content (input)... -
-
My text won't align to the right
Hi.
Description of problem: I'm using this CSS-template to build a website: http://www.glish.com/css/7.asp (scroll down at the site to see the full code of the template).
What I did was to create a new CSS element like this:
I have a language bar like this: "ENG | DE | NO" , and I want it to go in the upper right...Code:.langbar { font-size:12px; text-align:right; } -
Hi again.
My multilingual website is now up and running with gettext, although there is not much content atm. Anyway, I searched around the web for a resource that could show me how to get started with gettext, and this is the guide that worked for me:
http://mel.melaxis.com/devblog/2005/08/06/localizing-php-web-sites-using-gettext/
It requires minimal of insight, but it illustrates the idea very well....Leave a comment:
-
-
Multilingual website
Hi.
I want to create a multilingual website (english, german and norwegian). And I know a little PHP and MySQL. How should I approach this? Should I store the text in different databases? I don't know how to do this in a good way, that makes it easy to maintain.
Any help is welcome. It would be very interesting to hear from someone who has made a similar system before :)
No activity results to display
Show More
Leave a comment: