Jump to content

Little Goat

Members
  • Posts

    733
  • Joined

  • Last visited

Posts posted by Little Goat

  1. well, I think we better give a bit more info.First of all, to use reportingsjr's example and the one I'm about to show you, you need to have PHP enabled on your webhost.first you make yourself a header file, and a footer file.let's say the header file looks like this:

    <html><head><title><?php echo $pagename; ?></title><script src="myscriptiwantineverypage.js"></script></head><body>

    you know, just the basic head of a page. that <?php echo $pagename; ?> is what's going to give you a different title on each page.then you have the basic footer. (I'm not going to give an example on this one.)then you have each file, that are different, and they look something like this:

    <?php $pagename = "Mytotallyrediculouslylongtitle!!!";include("header.php"); ?>this is some content that will change on each page....this is some content that will change on each page....this is some content that will change on each page....<?php include("footer.html"); ?>

    of course, you have to change Mytotallyrediculouslylongtitle!!! to whatever you want your title to be, and header.php to whatever the filename of your header is, and footer.html to whatever the filename of your footer is.have I confused you enough? :) you really should get a basic understanding of php before you try this though.LG

  2. there is no way to change that. In Opera, it says "Choose" instead of "Browse". it all depends on the browser,and the only way to change it is get a different browser, or edit an Open-source one.

  3. you don't need to convert it to php, you can include any regular file.if you still want to, here's how:

    <?phpecho '<div id="sidebar-a"><p class="sideHEAD"><u>Head</u></p><p class="sideHEAD"><a class="side" href="/directory/target.html">Category</a></p><p class="sideTEXTINDENT"><a class="side" href="/directory/target2.html">Subcategory</a></p></div>';?>

    notice the echo.

  4. I'm trying to put together A regular expression that will match all of the following:

    <a href="someurl.html">go to someurl!</a><a href='http://somesite.com/someurl.php' title="hi!">go to somesite!</a>

    mainly just one that will pick up <a> tags with an href value, regardless of which quotes used, and which other attributes are specified. here is my regex that I'm hoping does that:

    /<a[^>]*?href=\s*("|')(.*?)("|')[^>]*?>(.*?)<\/a>/is

    also, is there a way to return what is in the href attribute and what is in between the tags? (I am tring to use JAVA, but PHP will work fine.)thanks.

  5. I only have IE, I haven't experienced ANY downside with it myself. :) (only the absence of CSS2/3)Maybe someone could come up with its lack of security towards malware, but that is actually up to your security software, not the browser, my opinion. And I have a strong security, never had any problems with either IE or my software.Besides malware, I also never had any unsolvable problems with css or markup. It just does what I want :) There isn't more to it is there?
    That sounds like me before I had anything else. My sig used to say "Why complain? IE is fine." that was before justsomeguy converted me to the dark side. :)
×
×
  • Create New...