- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 31
- Posts with Upvotes
- 28
- Upvoting Members
- 24
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
273 Posted Topics
Re: Simple PHP login: [B]Create a database (mysqladmin)[/B] Name the table "dbUsers." It will need 4 fields: [I]Name Type Addition[/I] id int(10) Primary Key, AUTO_INCREMENT username varchar(16) Unique password char(16) email varchar(25) [B]Create a new file and name it dbConfig.php[/B] This will file will connect to the database [CODE]<? // Replace … ![]() | |
Re: I would do it like this, [CODE=JS] <script> // This selector is called every time a select box is changed $("select").change(function(){ // varible to hold string var str = ""; $("select option:selected").each(function(){ // when the select box is changed, we add the value text to the varible str += $(this).text() … | |
Re: Hi, This is rather simple to do... [CODE] #adTop { left:0; position:fixed; text-align:center; top:0; width:100%; } [/CODE] Then just add the following inbetween your body tags [CODE] <div id="adTop"><img src="images/myad.jpg" alt="Ad here"/></div> [/CODE] | |
Re: Probably not the best approach but definitely the fastest. Wrap your iframe in a div [code] <div style="position:relative"> <iframe src="http://www.facebook.com/plugins/like.php?href=www.carbonated.tv&layout=button_count&show_faces=true&width=450&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe> </div> [/code] Then just add another div, inside it, but this time, position it absolute (we basically want our new image eg the … | |
Re: Hi, I would recomment Javascript. Going for jquery for in this case (i just prefer it). Here is the JS that i quickly wrote [CODE=javascript] <script> $(document).ready(function(){ // This is the class you use for your movie var movie = $(".movie"); // This varible will get your width var totalWidth … | |
Re: You'll have to go php most probably. Here's a cool site to check out [URL="http://www.hotscripts.com/"]hotscripts[/URL] could just find one for you... but this way you can accomplish something and choose a script that will blend in nice with your site. To add it into your page.. use a inline frame. … | |
Re: This is how I would think of it. You applying opacity to the wrapper (e.g 0.75) which all children will inherit as they belong to a transparent parent. Probably not the easiest solution, but will definitely work. Remove the following from the wrapper (opacity, gradient, background ect. -basically all the … | |
Re: Hi davy_yg, Looking at the CSS, I'm not sure why the link wouldn't display the background, as both your :link and :hover rule declarations are identical | |
Re: Try adding the following: [CODE]#upperMenu li{ height:30px; /* define height */ line-height: 30px /* line-height that matches what was defined above*/ }[/CODE] | |
Re: Considering all (or atleast majority) of the styles are set to inherit, why don't you just try adding an arial stack. To do so, try the following: [code=css] body { font-family: Arial, Helvetica, sans-serif } [/code] If its still not working, just be more specific [code=css] html body { font-family: … | |
Re: Hi, So what I did was, remove the bottom nested table and added it below. It should work (can't tell though because your page consists of only images). [CODE] <html> <title>Vidora.info - The Way Browsing Should Be</title> <body topwidth="0" bottomwidth="0" marginwidth="0" marginheight="0"> <table width="100%" height="100%" cellpadding="0" cellspacing="0"> <tr> <td valign="middle" … | |
Re: Really simple just add a line-height [CODE=CSS] .fb8 { background: url(button.png) no-repeat; border: none; outline: none; color: #bbbbbb; height: 22px; line-height:22px /*the line height must be set to the same amount of pixels your element is */ width: 105px;} [/CODE] | |
Re: [B]To center an email in email clients[/B] Create a 100% table, 1 row, 3 colums. In the center column of the first table, create another table with 1 column and 1 row and set the width to the physical width of the mailer. Set the width of the center <td> … | |
Re: You would have to use CSS Just add a div to your navigation and repeat a background image e.g. [CODE=HTML] <div class="navigation"> <ul> <li>item 1</li> <li>item 2</li> </ul> </div> [/CODE] [CODE=CSS] .navigation { width: 800px; height: 20px; background: url(../images/YourImage.jpg) repeat-x; /*save your image as 1x20 jpg*/ } [/CODE] | |
Re: Just add a height to the div and overflow:auto | |
Re: Its actually quite simple. [CODE=PHP] <a class="showHideDivs" href=\"#\">Show/hide</a><div id=\"enclosure\" style=\"display:none\">{$row['ticket']}</div> [/CODE] Then trigger an event using live [CODE=JS] $('a.showHideDivs').live('click', function() { $(this).next().animate({"height": "toggle"}, {duration: 1000}); }); [/CODE] | |
Re: Umh, use regex [CODE=JS] inputString = inputString.replace(/[^0-9]/g,'') [/CODE] | |
Re: It is in the following ul [CODE] <ul id="nav" class="dropdown dropdown-horizontal"> [/CODE] | |
Re: Could also use jquery [CODE=JavaScript] $('#tableID tr').size() or $('#tableID tr').length() or $('#tableID tr').count() [/CODE] | |
Re: Your target tag is incorrect. [CODE] <a href="http://www.endofdreamz.com" title="End of Dreamz" target="_blank">Website</a> [/CODE] | |
Re: You could use: [CODE] $('element').add() $('element').append() [/CODE] | |
Re: Yes this is possible. You can setup a server on localhost (127.0.0.1). Google easyPHP. If you need any more assistance with setting up the application. Give me a shout | |
Re: Use the code below, edit all the [COLOR="#ff0000"]red[/COLOR] text with correct data. [CODE]<?php $db_host = '[COLOR="#ff0000"]HOST[/COLOR]'; $db_user = '[COLOR="#ff0000"]USER[/COLOR]'; $db_pwd = '[COLOR="#ff0000"]PASS[/COLOR]'; $database = '[COLOR="#ff0000"]DB[/COLOR]'; $table = '[COLOR="#ff0000"]TABLE[/COLOR]'; if (!mysql_connect($db_host, $db_user, $db_pwd)) die("Can't connect to database"); if (!mysql_select_db($database)) die("Can't select database"); // sending query $result = mysql_query("SELECT `[COLOR="#ff0000"]TABLE[/COLOR]`.[COLOR="#ff0000"]FIELDNAME(DAY)[/COLOR],`[COLOR="#ff0000"]TABLE[/COLOR]`.[COLOR="#ff0000"]FIELDNAME(MONTH)[/COLOR],`[COLOR="#ff0000"]TABLE[/COLOR]`.`[COLOR="#ff0000"]FIELDNAME(YEAR)[/COLOR]` FROM `[COLOR="#ff0000"]TABLE[/COLOR]` … | |
Re: Hi sreein, This is the way I understand it, If you don't want to use relative positioning. Float would be your next bet. I use it mainly for layouts. But people do use it for images as well. Here a nice little article on it, that explains it in a … | |
Re: Here, let me get this one for you [URL="http://tinyurl.com/366nwa6"]CLICK HERE[/URL] | |
Re: Let me guess, the vertical positioning is the hard part? I would recommend using javascript. [URL="http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/"]Here[/URL] is a simple jquery plugin that should do it for you. | |
Re: REALLY easy. Use the link tag within your head tags [CODE=HTML] <html> <head> <link rel="stylesheet" href="http://www.example.com/styles/default.css" type="text/css" /> </head> <body></body> </html> [/CODE] | |
Re: What made you go for Iframes??? sure ajax or even an includes could have done the trick. Nevertheless. I think your issue lies in #mainvideoiframecontent. Think you have to define a height. Either manually, or javascript. | |
Re: Hi Priyam, What you talking about is lightbox. There are TONS of solutions out there (practically outta the box). Umh. Off the top of my head. [URL="http://fancybox.net/"]Fancybox[/URL] | |
Re: Try this [URL="http://tinyurl.com/2bnh7dh"]http://tinyurl.com/2bnh7dh[/URL]. It's one of my BIGGEST kept secrets. So please keep it on a low | |
Re: Thats an ajax request. Not much of a wordpress developer. But it looks like the page is trying to call a function "ecd.jq". I would recommend, attaching jquery to your page. Looks like it was there before the tag was altered. You will find it in the head of your … ![]() | |
Re: Hi, The reason it isn't centering is because you have defined a width in the body. Which is the canvas, so your browser assumes your table is already centered since your body is 960px. Regarding percentage conversions. Lets assume your table was 1000px (in the perfect world) and you have … | |
Re: I will teach you the best way of making rounded corners. Position your container relative, then using a sprite, define 4 corner classes and position them absolute to the container. Might seem like alot, so here is an example [CODE=CSS] .container {position:relative} /* begin corners */ .corners {position:absoulte; width:10px; height:10px; … | |
Re: I would try something like this [CODE=CSS] #menu ul li ul { margin:0; padding:0; position:absolute; top:26px; width:300px; visibility: hidden; } [/CODE] [B]Note[/B] I specified a width, if you don't, chances are it will display as a vertical menu instead of horizonal. Hope this helps | |
Re: pritaeas is absolutely correct. You have inline styles on most of your p tags, which are above 900px. You could try something like this (untested) [CODE=CSS] .p[style]{ width:800px; } Probably won't work in ie6 though. [/CODE] | |
Re: Will need to see your html and css. Could you post it. Live link could also work | |
Re: I would suggest a very simple style reset. Try [CODE=style] * { margin: 0; padding: 0; } [/CODE] | |
Re: Are your table/div echo commands within a while statement? | |
Re: Urtivedi is right and wrong, mailto attribute does not just open blank. [URL="http://www.webdevelopersnotes.com/tips/html/html_mailto_attribute_html_tips.php3"]Read more [/URL] He is right however, regarding the submitting of your form, for that you will need server-side. What database are you using? if its MYSQL, you will have to go php. | |
Re: Ardav is correct but technically speaking, don't think I would refer to it as a footer, think its more of a menu bar (status bar). That adside. REALLY wierd link to share though, considering the status bar is sitewide. Anyone interest in seeing what is being discussed, use this link … | |
Re: Why don't you just use hexadecimal. E.g. [CODE=CSS] span { color: #ff0000 } [/CODE] [B]NB:[/B] RGBa is only suppported by Mozilla Firefox 3.x (and up), Google Chrome, Safari 3.x (and up), Opera 10.x and IE9. If you do decide to use it, ensure you have a fallback. | |
Re: Why don't you try something like this [CODE=CSS] #header li { display: block; float:left; } [/CODE] | |
Re: You could go liquid layout, but usually the best (or my personal favourite) is the 960 grid. | |
Re: You could use ajax to do the login check and echo wether or not login was successful with an if statement. So something along these lines [CODE=JS] // Varibles that hold userinfo var username = $('#UserName').attr('value'); var password = $('#UserPassword').attr('value'); $.ajax({ type: "POST", url: "php/process_login.php", data: "username=" + username + … | |
Re: Try removing the leading slash, as these are used to define absolute paths [CODE=HTML]<!--[if lte IE 6]> <link rel="stylesheet" type="text/css" href="css/mainiesix.css" /> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="css/mainieseven.css" /> <![endif]--> [/CODE] | |
Re: Hi, Could i see your code? But what im getting from you is, something along these lines: [CODE=HTML] <div class="wrapper"> <div class="container"></div> </div> [/CODE] Yet your wrapper is only 100px in height. then you have padding on the container to push it 100px down. Why? Whats the point of having … | |
Re: I would just do something like this [CODE=CSS] #navigation .highlight a.pools:hover, #navigation a.pools_active, #navigation a.pools .hover { background-position: 0 -77px; width: 202px; } [/CODE] Then just add the class "pools_active" to your link when it is active. If that doesnt work, just make the selector more specific. eg. [CODE=CSS] div … | |
Re: It's practically the stacking order of elements. E.g. You have one div with a z-index of 1 and you got another smaller div with a z-index of 2. The div with the higher z-index will be infront. So in this case, the smaller div will be rendered ontop of the … ![]() |
The End.