iframe or php

A

Alec

Can anyone help.

Am adding a weekly news facility to my site designed on Frontpage 2000.

I want to have one standard news page, linking to the content of the
different news releases. I though about using php and MySQL to store
and recover each news story, however I have heard that Google will not
index information generated using php/MySQL.

So I then came across an article on iFrames, and was wondering if
Google will index information displayed within these. If so, does
Frontpage 2000 support iFrames. Any good examples knocking about?

Many thanks

Alec
 
T

Thomas A. Rowe

Google will index dynamic content from a database driven web site.

FP2000 doesn't have built-in support for inserting IFrames like FP2002/2003, so you would have to
manual insert one. However, if the search engines do index the content of the IFrame, it would be a
link directly to the content of the IFrame, not to the page the IFrame is in.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
A

Alec

Thomas

Thanks for the reply. I was confused with PHP because someone mentioned
that Google could not index the information. So if I have a link that
includes a keyword to retrieve a news story from the database, Google
will see this link, query the search, and index the information?!

On the subject of iframes, as I cannot insert one with Frontpage 2000,
does anyone have a simple example of the code required.

Many thanks

Alec
 
C

Chris Leeds, MVP-FrontPage

you'd have a lot better luck with PHP and the search engines than you would
with Iframes.

there were some rumors about search engines not indexing pages with query
strings like http://example.com/store/prod.asp?key=something
but it's just not true, look at a few Google search results and you'll see
some funky looking URLs so it's obviously not true.

HTH
--
Chris Leeds,
Microsoft MVP-FrontPage

If you make web sites for other people, you should check out ContentSeed:
http://contentseed.com/
 
T

Trevor L.

Alec said:
On the subject of iframes, as I cannot insert one with Frontpage 2000,
does anyone have a simple example of the code required.

I have a news page in my website which has an expiry date. It may seem a
little complex, but it works like a charm.

The only real problem is that the news has to be quoted in JS. I may work on
that. If you are interested in the code, let me know and if I suceed in
changing it, I'll post the changes.

Code follows
=========================================================================
CSS - Place in style.css
iframe.c1 {width:400px ; height:300px; display:none;}

HTML (on main page)
<!-- News -->
<button onclick="loadIframe('News','news.html')">Open/Close News</button>
<iframe class="c1" id="News" src=""></iframe>
<!-- ==== -->

news.html
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" media="print" href="print.css">
<!-- add print styles in here -->
<style type="text/css">
body {background: lightblue url("")}
</style>
<script type="text/javascript" src="scripts/news.js"></script>
</head>
<body onload="writenews()">
<span id="newstext"></span>
<br />
<input type="button" value="Print" onClick="print()">
</body>
</html>

JS - Place in news.js
// Update newsdate after changing writenews()
var newsdate = new Date('08 November 2005')

function Newsdate()
{
var ldate = newsdate.toLocaleString()
var fyear = newsdate.getFullYear()
return ldate.substring(0,ldate.lastIndexOf(fyear)+4)
}
// ----------------
function spc(no)
{
var text = ''
for (var i = 0 ; i < no ; i++ )
{text += '&nbsp;'}
return text
}
// ----------------
function writenews()
{
var newsdata = (Math.ceil( (new Date() - newsdate) / (1000*60*60*24) ) <=
7)
? '<b>News from ' + top.document.title + '<br>'
+ 'Last Updated: <span class="red">' + Newsdate() + '</b></span>'
+ '<p>' +

// Enter New information here
// Retain opening ' and closing <br>'+ (' on last line)
// (NB spc(n) = n spaces. § is a section symbol.)

'§' + 'New Link in Family Websites (sidebar)<br>' +
spc(2) + 'Martin\'s Photos @ Fotopic.Net <br><br>' +
'§' + 'New Fotopic Gallery added <br>' +
spc(2) + 'and old gallery renamed'

// End of New information

: 'No news available'
newsdata += '</p>'
document.getElementById("newstext").innerHTML = newsdata
}
// ----------------
function loadIframe(frameName,sPath)
{
var x = document.getElementById(frameName)
if (!x.style.display | x.style.display == 'none')
{ x.src = sPath
x.style.display = 'block' }
else
x.style.display = 'none'
}
// ----------------
=========================================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top