- 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
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. |