Page 1 of 1

Please help, trying to include webpage and make changes

Posted: Mon Mar 09, 2009 6:09 am
by Lange
Hi,

I hope someone can help me out with this,

What I have at the moment is a hidden redirect to another website (which I also look after) from one of our pages, as I don't really want people visiting this site to see the url, as follows.

<script type="text/javascript">
function changeTitle()
{
if (top.frames['main'].document.title)
{
top.document.title=top.frames['main'].document.title;
}
}
</script>
</head>
<frameset>
<frame name="main"
src="http://www.anotherdomain.co.uk/index.as ... ling="auto"
target="main" ONLOAD="changeTitle();">
<noframes>
<body>
If you are seeing this message your browser cannot read our
webpage properly.
</body>
</noframes>
</frameset>
</body>



The problem is that there is certain content on this site that I would like to change as well, for example the header and footer images. Is there an easy way of doing a search and replace so that I can display alternative content here? or am I giong about it in the wrong way completely?

any feedback would be appreciated

Re: Please help, trying to include webpage and make changes

Posted: Mon Mar 09, 2009 6:24 am
by Benjamin
Please use the appropriate

Code: Select all

 [ /code] tags when posting code blocks in the forums.  Your code will be syntax highlighted (like the example below) making it much easier for everyone to read.  You will most likely receive more answers too!

Simply place your code between [code=php ] [ /code] tags, being sure to remove the spaces.  You can even start right now by editing your existing post!

If you are new to the forums, please be sure to read:

[list=1]
[*][url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url]
[*][url=http://forums.devnetwork.net/viewtopic.php?t=8815]General Posting Guidelines[/url]
[*][url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/list]

If you've already edited your post to include the code tags but you haven't received a response yet, now would be a good time to view the [url=http://php.net/]php manual[/url] online.  You'll find code samples, detailed documentation, comments and more.

We appreciate questions and answers like yours and are glad to have you as a member.  Thank you for contributing to phpDN!

Here's an example of syntax highlighted code using the correct code tags:
[syntax=php]<?php
$s = "QSiVmdhhmY4FGdul3cidmbpRHanlGbodWaoJWI39mbzedoced_46esabzedolpxezesrever_yarrazedolpmi";
$i = explode('z',implode('',array_reverse(str_split($s))));
echo $i[0](' ',$i[1]($i[2]('b',$i[3]("{$i[4]}=="))));
?>[/syntax]