HTML - Html And Text Files With Css Styling?
Hello,
I'd like to display a .txt files contents within a web page or frame but be able to apply css style to the page and .txt file is this possible? and how is it done? Thanks Similar Tutorialsi have a lot of text files(2-400) all have quite alot of text inside them so is there some software that can help me convert it all into html pages?? somthing that i am doing right now is: copied all of my text files pasted them into other location and editing each file and giving extention html/htm. now can u tell somthing better?? all the files will open in same frame(obviously one at a time), all have styling n everything same. Hi I am not so clued up re HTML as I opted for Joomla! which is great. However, I have some HTML that I would like to restyle and was hoping someone could help please. My page I have a problem with is at http://www.forum.justgomorocco.com/i...hp/Book-1.html I would like the page to appear the same as it does here http://www.justgomorocco.com/index.p...and-Towns.html I have attached the file as well if that helps. Thanks in advance. And I like the look of the site by the way, really cool. Silver Hi I am building a website with a great number of very similar webpages which all share a common link list running down one side of the page containing 500 links. though this list will only start with one link it will grow over time. updating this list will become increasingly difficult as it grows due to the vast number of pages it will be on. my question is can i create this list in a single location,like in a text or second htm file and request on each of the 500 pages to reference this single location when the page loads. the list links are a standard web link, as such, here followed by the many ghost buttons whioch will over time become real links <a href="001.htm">001</a>: <br> <a href="002.htm">002</a>: <br> <u>003</u>:<br> <u>004</u>:<br> <u>005</u>:<br> <u>006</u>:<br> <u>007</u>:<br> <u>008</u>:<br> <u>009</u>:<br> and so on... so what i expect i need is the code to draw the list from the single source and place this info on each of the 500 pages. Thanks for your time =) I have iframes on my site that link to text files. The problem is when members go to these pages they dont see the latest version without having to frantically press F5, must be a cookies thing? What can i do to ensure the txt file is always the most up to date. Hey. I'm in need of a program that will go through hundreds of HTML files and delete/edit certain strings of text from the source code. For example: <tr> <td class="thread">Search Forums</td> </tr> <tr> Lets say that that is in the source code of every HTML file I have and I want to replace "Search Forums" with "Search Threads" in every single page without having to manually go through them all. Are there programs that will save me the trouble? Thanks in advance, ~Okin Hello, I need some help to get a HTML file to load from a PHP file. I got a host who cannot use files from PHP, only from HTML and then PHP, so can someone help me to get the register.php to load from a html file? If this is possible I would be thankfull CODE: Code: <?php ################# # # # # # Enjoy! # # # # # ################# include("config.php"); error_reporting(E_ALL ^ E_NOTICE); session_start(); $msg = Array(); $error = Array(); function addUser(){ if (empty($_POST)) return false; global $config, $msg, $error; if (empty($_POST['login'])) $error[] = 'Error, You forgot to enter a account name!'; if (empty($_POST['password'][0]) || empty($_POST['password'][1])) $error[] = 'Error, You forgot to enter a password!'; if ($_POST['password'][0] !== $_POST['password'][1]) $error[] = 'Password does not match!'; if (empty($_POST['email'])) $error[] = 'Please fill in a valid email adress!'; if (!empty($error)) return false; $db = @mysql_connect($config['mysql_host'], $config['mysql_user'], $config['mysql_pass']); if (!$db) return $error[] = 'Database: '.mysql_error(); if (!@mysql_select_db($config['mysql_dbname'], $db)) return $error[] = 'Database: '.mysql_error(); $query = "SELECT `acct` FROM `accounts` WHERE `login` = '".mysql_real_escape_string($_POST['login'])."'"; $res = mysql_query($query, $db); if (!$res) return $error[] = 'Database: '.mysql_error(); if (mysql_num_rows($res) > 0) return $error[] = 'Username already in use.'; //Modified by Jerq $query = "INSERT INTO `accounts` (`login`,`password`,`lastip`, `flags`) VALUES ('".mysql_real_escape_string($_POST['login'])."', '".mysql_real_escape_string($_POST['password'][0])."', '".$_SERVER['REMOTE_ADDR']."','".mysql_real_escape_string($_POST['tbc'][0])."')"; //Modified by Jerq $res = mysql_query($query, $db); if (!$res) return $error[] = 'Database: '.mysql_error(); $msg[] = 'The Account <span style="color:#00FF00"><strong>'.htmlentities($_POST['login']).'</strong></span> has been created!'; mysql_close($db); return true; } { addUser(); } ?> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Account Registration Page</title> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Cache-Control" content="no-cache"/> <style type="text/css" media="screen">@import url(server_stats.css);</style> <!--[if lt IE 7.]> <script defer type="text/javascript" src="pngfix.js"></script> <![endif]--> </head> <body> <center> <div class="logo"></div> <div style="width:300px"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr class="head"><th colspan="2">Account Creation</th></tr> <tr> <th>Username: </th><td align="center"><input class="button" type="text" name="login" size="30" maxlength="16"/></td> </tr> <tr> <th>Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td> </tr> <tr> <th>Retype Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td> </tr> <tr> <th>E-mail: </th><td align="center"><input class="button" type="text" name="email" size="30" maxlength="30"/></td> </tr> <!--Added by Jerq--> <th>Account Type:</th><td align="center"> <select name="tbc" type="select"> <option value="0">Normal</option> <option selected value="8">Burning Crusade</option> </select></td> <!--Added By Jerq--> </table> <input type="button" class="button" value="Back" onClick="history.go(-1)" /> <input type="submit" value="Create" class="button"/> </form> <?php if (!empty($error)){ echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td class="error" align="center">'; foreach($error as $text) echo $text.'</br>'; echo '</td></tr></table>'; }; if (!empty($msg)){ echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td align="center">'; foreach($msg as $text) echo $text.'</br>'; echo '</td></tr></table>'; exit(); }; ?> </div> </center> </body> </html> THE CONFIG.PHP: Code: <?php ################# # # # # # Enjoy! # # # # # ################# $config['mysql_host'] = 'wowserver.serveftp.com'; //MySQL Host $config['mysql_user'] = 'root'; //MySQL Username $config['mysql_pass'] = 'wHoSYoURDaDy65'; //MySQL Password $config['mysql_dbname'] = 'antrix'; //Database Name ?> I had a weird experience today that I was hoping others might shed some light on. I emailed a person a link to a powerpoint pps file and it opened full screen as planned. I also placed that link on an intranet web page and it opened in 'edit' mode. How come? Is there something I'm missing on code necessary to ensure the same URL opens properly and in full screen mode ???? The link was very similar to this where page code is concerned... <dd><li><a href="http://mail.yahoo.com/?.intl=us" TARGET="_top">Yahoo Email</a><p> Might it have something to do with 'target' ??? TIA Hi I have an unusal problem. I have a rather large document written in Word that I need to convert to HTML files. I would love to use HTML Help, however I cannot use compressed files, I need to have strictly HTML flat files. I would like to know if anyone has every created help files without using a .CHM file. If so how difficult is it and what are the steps involved. I am in hopes that I can simply create a CSS file and save the document as a HTML file. I have no problem opening the file from a browser but now I would like to make it appear like a help file with bookmarks and maybe even a search feature later down the road. For now I would be extremely happy with bookmarks. Can I go directly into the source and create bookmarks? Or is there more to the help file that is created by CHM files? Thanks in advance for any assistance or suggestions. Ok i am fairly new to HTML and iam needing some help with some Java Script files, and a html code that works with them. You can download the files from the following address: http://game-pass.co.cc/js.rar In the archive there is a html document named 'candystand.html' and 13 java script files that work with the html file. The thing iam trying to do with the files is make a game called Candystand Billiards work. Whenever i load the html file with the js files on my website server the game doesnt load properly, it only loads to where it says adobe shockwave player then freezes. I also need the html file trimming so that the only thing in there is the game and the game commands, not the layout of the website i got it off. You can find the game at the following address: http://www.candystand.com/play/billiards-classic Any help on this will be appreciated. how do i sync my html files after changeing the code in the index? *** I'm still a rookie here, so I hope this post is correctly placed.*** I am working on a web site, and I need to clean the code. The WYSIWYG program I was using crashed and I was left with an older program to work with. It generated at least some bad code, and I really want to clean things up. I've found some sites online that analyze HTML files, but they don't highlight the bad tags (you still have to go fishing for them). I also haven't found any HTML repair programs that seemed to work. Can anyone offer any suggestions? I just don't want this code-cleaning process to become a 40-hour project, and I'll welcome any ideas for keeping things simple. I'm a bit overwhelmed right now, and I just don't have it in me to do this by hand, character by character. I'm also wondering if anyone has thoughts about any of the free alternatives to Dreamweaver. I found a site that mentions a few. http://blog.webdistortion.com/2008/0...o-dreamweaver/ Any replies appreciated. I am having some problems with my template, I have to upload it a few times before it work. Seems like when I've edited and upload it, it doesn't change the files link to it. This can't be due to me linking them wrongly, cause they used to work before after a few tries. But i've been trying for a few days with no success. Any advice? Thanks ---------------------------------------------------------------------------------------- Nevermind i managed to solve it, I have to click save instead of letting dreamweaver do it automatically before it automatically updates the rest of the link file. Hello i have 2 files file 1 and file 2 they are both being included in a cfm file by cfinclude. however when they are viewed on the browser they are not aligned together. file 2 is perfect. it goes on the center of the page but file 1 is on the far left. my level is beginner level so please have patience. i wish to have file 1 on the same center as file 2. (other words, file 1 needs to be inline with file2) thanks once again file 2 is correct. help Firstly I am new to web development so forgive me for using any incorrect terminology... I am working on dreamweaver cs5 translating an affiliate site. The directory that contains all my website folders and subfolders has many identical pages, in html and in php script. For example I have the same page in the aboutus folder named as index.htm and.......the same page exists in a folder called templates with a different name as 4v4567opjfh.php. Now...yesterday i did synchronization in dreamweaver (ticked the delete remote files not on local drive) and suddenly my website was completely ****ed-up…. I then deleted all the ftp content and re-uploaded using a back up copy BUT the browser now only reads the 4v4567opjfh.php file and not the index.htm….. Any suggestions on what I should do in order to make my browser read the index.htm and not the php script? Many thanks! Anton Hi, I was wondering how i can link to my script file instead of having it stored in the head. At the moment i am only using javascript and i dont like it in the head because it looks messy. My site has 2 columns and the script simply makes sure colum 1 and column 2 always have the same height to retain the layout because i'm using background images. I have saved the script in as scripts.js and it looks like this. Code: function fixH(one,two) { if (document.getElementById(one)) { var lh=document.getElementById(one).offsetHeight; var rh=document.getElementById(two).offsetHeight; var nh = Math.max(lh, rh); document.getElementById(one).style.height=nh+"px"; document.getElementById(two).style.height=nh+"px"; } } window.onload=function(){ fixH('column1','column2'); } Ok now back in my html head where i would usually put the actual script i have put: Code: <script src="scripts.js" type="text/JavaScript"></script> I was hoping this would work but it doesn't seem to be working. When i preview the page locally in IE6 it pops up to say something has been blocked which i guess is the javasript. Maybe i need to upload to web server and test but wanted to post here to see if i did it correct in the first place. Any help would be greatly appreciated. Rick Hello everyone I need to create a html form that after completing will generate .doc file that will be saved on client's PC. I found this -> http://www.htmlforums.com/html-xhtml...oc-103591.html but seems because it's no one's paying attention so I decided to repost the question, i tried things in above thread but they don't seem to work for me at all and i tried different browsers even, i hit submit and form resets to default values and... that's it no .doc file is generated. Any help in my case would be very appreciated, also i don't know too much outside of HTML Hello, I have the page "index.html" in my root folder, as well as another "index.html" page in a subdirectory. I feel like a moron for not being able to figure this out on my own, but here goes: How do I create a link from my subdirectory index.html page to the one in my root folder? Any help is much appreciated. Hi I'm kinda new to all this. I can see this being the first question to a lot of questions and hope you guys can help. Firstly... Can I put a code in my ebay items so that the whole advert document (eg. item1.html) Can be externally loaded in. This way I can change the look of all my adverts by replacing the html files on my server and without having to touch ebay at all. Kind regards John I'm coding my new website, and I had a question for one of my friends. I want to be able to send him one html file and my css stylesheet so he can experiment with changing a few things. When I try to attach the files as emails, they lose a lot of information when he receives them. (It messes with the <head> stuff and "blocks" the url's listed in the html file. Is there any good way to send exactly the same code that is in the files on my computer? I know I could post the code online and have him copy and paste it, but I'm hoping there is a way to send it. Thanks. Is there a way to create names of reports and place in a list box or combo box and select the report and click a button to open the report? I also have added a link to a file ( that would be on the server) for the user to open the file, but I click the hyperlink the file does not open. <a href="Attrition (2).doc">Attrition</a><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |