HTML - How To Show The Page Title In The Main Body Automatically
Hi Guys really hope you can help
I have a site which runs off a couple of templates and what i need to do is add some code into one of the ditable regions so that it will pic up the Page title and drop it in the body off the page. e.g. the page title is 'Monkey23' and i require 'Monkey23' to automatically show up in the Body of the page. I have hundreds of pages all with different titles and therefore manual titling is not an option. Anyone got any awesome code to help me? Cheers Tom Similar TutorialsI have main window and child window opened by child = window.open(adr, name, "height=200, width=600,resizable=1"); Both pages have <title>title</title> But whereas main widow has in title bar "title - Microsoft Internet Explorer" ,the child window has "http://<ip address> - title - Microsoft Internet Explorer" Why that difference? I want the ip address in child window to disappear, but don't know how. It does the same in IE6 and Mozilla. Thanks. I am attempting to use google analytics on a website someone else developed. I am now in charge of updating this site but am having a problem finding the home page so I may add a google meta tag which would verify me as site owner. The site is at http://www.vandam.com However when I look at the directory on my ftp site and open the file labeled main.html, it looks nothing like the source code I see via the web. What is going on with this. Which file should I be looking for? I'm getting rid of my index.html file, and replacing it with a brand new index.php file. But I have a problem... I have a forum which has an index.php file... If I rename my websites index.php file to homepage.php, am I able to have that page load up when someone visits my website, or does it have to be named index.php? I have wordpress installed at mydomain.com/blog and I want a simple splash page to show up at mydomain.com. I've created the page in html and it works the way I want it to but I can't get it to show up at mydomain.com. When I go to mydomain.com it shows up as INDEX OF and I can click the splash page file but I want the domain to point straight to the splash file. Thanks for any help you can offer. I have a web page that has a gap between the main content page (lower) and the header piece(upper) and I can't figure out how to close this gap. If you're interested in taking a look at it. Here's the code and i've attached an image for a visual aid. Thanks. Code: <table width='770' border='0' cellpadding='0' cellspacing='0' id='maintable' align='center' table valign='top' align='left' cellpadding='0' width='770' height='500' table style='background-color:#ffffff; font-family:Arial, Helvetica, sans-serif; width:'770' height:'500'></td> <link href='custom.css' rel='stylesheet' type='text/css'> <td id='menu' align='left' valign='top' rowspan='500' width='165'> <br> <img src='images/bullet.gif' alt='' width='10' height='10'><a href='index.php'><font color='#DDCEA2'><font face='Arial' size='2'>Home</a></font><br> <img src='images/bullet.gif' alt='' width='10' height='10'><A href='index.php?command=signup_page'><font color='DDCEA2'><font face='Arial' size='2'>Sign Up</font></A> <br> <img src='images/bullet.gif' alt='' width='10' height='10'><a href='faq.html'><font color='DDCEA2'><font face='Arial' size='2'>FAQ</a><br> <img src='images/bullet.gif' alt='' width='10' height='10'><a href='legal.html'><font color='DDCEA2'><font face='Arial' size='2'>Terms of Use<br></a> <form method='POST' action='index.php'> <input class='field' type='hidden' name='command' value='account'> <input class='field' type='hidden' name='param' value='signup'> </form> <tr><td> </td></tr> <td valign=top colspan='2' class='pageTitle'><div class='hLine'><b> <font face='Arial' color='#EE7600' size='3'>Select The Payment Button Below To Continue</b></font></div></td></tr> <td class='fieldLabel' width='30%'> <font face='Arial' color='#A30100' size='2'><b>Transaction Type:</b></font></td> <td align='left' class='text' ><b>[account_type_title]</b></td> </tr> <tr> <td class='fieldLabel' width='30%'> <font face='Arial' color='#A30100' size='2'><b>Price:</b></font></td> <td align='left' class='text' ><b>$ [price]</b></td> </tr> <tr> <td class='fieldLabel' width='30%'> <font face='Arial' color='#A30100' size='2'><b>Subscription Period:</b></font></td> <td align='left' class='text' ><b><font face='Arial' color='#000000' size='2'>[period]</b> (month)</font></td></tr> <tr valign='top' height='55px' '> <td valign='top' class='fieldLabel' width='30%'> </td> <td valign='top'> <p><font face='Arial' color='#000000' size='2'>[payment_code]</font></p></td> </tr> <tr><td> </td></tr><tr><font face='Arial' color='#000000' size='2'></font> <tr height='30%' ><td colspan='2'><div class='hLine'> </div></td></tr> </table Hi, I am trying to figure out how to restrict users (guests) from browsing straight to a page within my site. I would like to ensure that all users must access the site via www.mysite.com Example: User- browses to www.mysite.com/pages/interestingpage.php (or .htm) I would prefer to force the "User" to click their manually via the links on my main page. I imagine some sort of session would be required for this. However I do not wish to require users to log in. I've heard that .htaccess or Apache's config file can be used but so far I have not been successful. I do have full access to the server/configuration. Hoping someone can assist. Examples would be most ideal. Thanks! Where would i be able to learn how to make a script that goes like this: The person puts a script in the message box (eg. [.b]hello[/b] ), presses the button and on the main page it displays the code they put in. (hello) Thanks After a user uploads a file he is automatically logged-out and re-directed to "destination" web page. Then the user can only select the Home link and re-directs himself to the home page. What code can I add to the "destination" web page (code below) that will automatically (in the background) move the user automatically from the "destination" page to the Home Page? (if you suggest I re-direct straight from the upload to Home Page, I'd rather go to destination page and then to home page) Thank you. Also, I tried this at the end of the page, but it didn't work: Code: header("Location: http://www.somewebsite.com/home/index.php"); exit; </table></html> Here's the full page code: Code: <html> <head> <title></title> </head> <link href="custom.css" rel="stylesheet" type="text/css"> </head> <body> <table width="770" border="0" cellpadding="0" cellspacing="0" id="maintable" align="center"> <td><img src="images/greyline.gif" alt="" width="174" height="0"></td> <td><img src="images/white.gif" alt="" width="596" height="0"></td> <link href="../style.css" rel="stylesheet" type="text/css" /><style type="text/css"></style> <tr> <td width="174" align="left" valign="top" bgcolor="#A30100"> <form method="POST" action="index.php"> <input class='field' type='hidden' name='command' value='account'> <input class='field' type='hidden' name='param' value='login'> <br> <img src="images/bullet.gif" alt="" width="10" height="10"><a href="/home/index.php"><font color="#DDCEA2"><font face="Arial" size="2">Home</a></font><br> <td width="420" valign="top" bgcolor:"#000000"> [main_content]</td> </table> <td width="174" valign="top" bgcolor="#FFFFFF" align="right"> </tr></table> </table> </html> Ok, This might be a bit confusing but ill try my best. On my main website homepage i have a splash image which when clicked redirects to the main website, also in another folder i have a phpbb3 Forum. Below the image on my homepage i have a login box for the forum as well. What i would like to do is to hide that login box unless a keyword is entered before hand, and make the domain.com/forum URL inaccessible unless you login through this route. basically hiding the forum completely so people dont actually know its there. I could do this through .htaccess however i was hoping there was a "cleaner" way to do this. Many Thanks Rob HI Im making a site at the mo and im looking to keep the menu and a picture stay in the same position constantly. So when then user moves the scoll wheel only the text are will scroll. I dont want there to be any border or scroll bars around the text, so the only visable scroll bar will be the browsers... any ideas? Hi, How in HTML can you force a webpage to scroll down to a certain point of the page when the page loads up. Is this possible in HTML. Once it does scroll down to the certain point, I still want to be able to scroll up and down AFTER it has loaded up...is this possible. Can someone please urgently help. Thanks Ok, just made a website on photosohp and transfered it to notepad, then hosted it on free webs http://www.freewebs.com/narcotica. At the top of the window the title says "New Page 1", how would i change this? Many Thanks, Narc Hi guys, Is there a way I can have a page of links sat in a directory which I can call from via other pages on the server? I think I'm thinking of something that can be done with PHP, but the idea is: On main page, for example, links: 1 2 3 All call to 'links.html' Which has a list of page URL's, each with their own ID. So the links on the main page call to the ID's, which extracts the link listed at that moment in time. So if I later want to change the link, I have only to change the link.html and not every related link on the site. I know I could maybe use inline frames, but the layout I have makes that not possible, and it's still not a great solution. I'm sure someone must know what I'm talking about. Sorry if it sounds confusing! Cheers! HI, I just started here... like two minutes ago. I NEED help on getting a form to automatically post to a page on my website. So, i'm making a class website, right, and I need my teacher to be able to post stuff on a page and have it erase what was already on there (every week). My teacher does not know html, so I would like to have a text box automatically edit the page, I am a medium web designer... but I do not know ANYTHING about this, I have searched EVERYWHERE and couldn't find ANYTHING. It got so annoying that I gave up for about 6 months... until today, which is why I'm asking this. By the way, I would also like "Contact us" forms to go directly to my email, WITHOUT any CRAPPY websites (like the one I'm using now) any help would be very appreciated!! Hello, I have a form which links to Results.htm Basically I want the title of that page which opens in a new window to be whatever was input in the form previously. Hope you all can help me, it's been bothering me for quite some time. Thanks, Jooey Dear Forum readers.. My personal issue is a simple one. I need HTML assistance on the correct tag(s) to use to cloak the link I use to refer to another site. I.E. Clickbank, hiding the hop used.. example... <META HTTP-EQUIV="refresh" CONTENT="0;URL=http://sophiaxxx.Iplans.hop.clickbank.net"> When used, the new page has the above link displayed prominently in the title bar. How do I disguise or re-program that aspect? Thanks.. . I have a link from a web page to a page on another server. The link works fine, but the Title at the top of the new page displays the full path as well as the HTML allocated Title. Can anyone advise me how to stop the path being displayed? Thanks Dave I have searched many pages on this forum for the answer to my question but cannot find it anywhere. I do not know if this can be done in html. I am fairly new to html pages but have been creating .php pages for awhile. I am trying to dynamically create a title for a page based on the url on an html page. I have an existing site that I would prefer to leave html and not change to .aspx or .php. An Example would be: w'ww.mysite.com/ResultsGeneral.html?kwds=Sweatshirts&color=Gray-Sweatshirts. (Not a real site but an example.) I would want to display Gray Sweatshirts for the <title>Gray Sweatshirts</title> head. I know how to do this with .php. I would use <title><?php echo urldecode($_GET["color"]); ?></title> I have also found out this can be accomplished in aspx by using <head id="Head1" runat="server"> <title><%= Request.QueryString("color").Replace("-"," ") %></title> I need to know if it is possible to accomplish this with .html. I am sure it is something simple like .php but I have tried several methods and looked at a lot of forums and cannot find the answer. I may not be wording the question correctly. Thanks in advance, Bob. Hi! I would like to know if it's possible to link informations located in an html file into another html that would be displayed on a web page. I'll explain my situation: I'm managing a simulated hockey league and the simulator I'm using generates after each simulation many html files that contains infos about standings, injurues, etc... What I would like to do is to, rather than putting buttons on my main websites to access the plain black&white html file, take the info inside these html and put them directly on a better web site interface, all this automatically. In a way that I only have to code once my main webpage so it can read my generated html files (that always keep the same file name) and updates my nicely designed web page each time I put newer htmls on my web ftp. Is it possible? Thank you very much for your help. I have made a rigid non repeated background image on a webpage I am designing using html and css code. Above the image is a title of the page which is "About Us". I want the "About us" to be rigid and non moving and to stick with the background image while the rest of the text on the page will be free scrolling. What code should I use to accomplish this. Thank you in advance. |