Welcome to WebmasterWorld Guest from 54.226.2.31

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to make an adwords type include without js

javascript adwords include

     

seoer

5:35 am on Feb 5, 2004 (gmt 0)

10+ Year Member



I want to have an included file on a few clients sites that doesn't use js, iframe or shtml/other scripting language. Basically I want to have an adwords type html box can be embedded on different sites that google can follow, and that lives at a remote location.

Is this possible? ideas?

Thanks.

seoer

5:41 am on Feb 5, 2004 (gmt 0)

10+ Year Member



Thinking more about this, I would really like the content to be parsed into the page as it would with a php include(). I just want to avoid having to work with multiple scripting and hosting setups.

<!--#include file="college.html" -->
^^^this type of include would be fine, but often won't work unless you rename page to shtml. Something like it though?

tombola

8:52 am on Feb 5, 2004 (gmt 0)

10+ Year Member



The <!--#include file="college.html" --> command can only access files that are located on your local system, not on another server.

I think the best solution is to use an iframe.

FYI: Google Adsense uses an iframe to display Adwords.

tedster

8:55 am on Feb 5, 2004 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Wow, you've just mentioned and ruled out every technology I can think of that allows you to update only one file and then import/include it on more than one page.

Javascript
PHP
SSI
iframe
frame

I think these are your options.

tombola

9:14 am on Feb 5, 2004 (gmt 0)

10+ Year Member



seoer, here's an example of an iframe:

<iframe src="http://www.mydomain.com/insert.html" width="450" height="65" scrolling="no" frameborder="0"></iframe>

I hope tedster will post his solutions too ;-)

ggrot

8:14 am on Feb 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



actually, a php include() statement will work with remote urls given certain specific security settings on the local machine.

You can get around the extension setup through the use of index.php's where the filename/extension doesn't show, or through the use of .htaccess to set arbitrary extensions to be php executed. For example, on most of my websites .htmls are php executed and .htm are pure html.

King of Bling

3:41 pm on Feb 11, 2004 (gmt 0)

10+ Year Member



Suprised you don't want to consider SSI. You could still set the servier to parse .htm or .html files as dynamic...

seoer

12:58 am on Feb 12, 2004 (gmt 0)

10+ Year Member



SSI seems to be the best way to do this, but it doesn't seem possible to include remote (off server) files. Well there seems to be some conflicting information out there at least.

vkaryl

2:13 am on Feb 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can handle this with Dreamweaver's .lib files - if you have $500 to blow on a so-so editor....

Giacomo

1:12 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



I want to have an included file on a few clients sites that doesn't use js

What do you mean "that doesn't use js"? Your included file must not use JavaScript? Why?

JavaScript as a client-side scripting language is supported by most browsers.

I doubt that any SE will index JS-generated content though.

seoer

5:27 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



I don't want to use JS because SE's (google) wouldn't pick up any of the links created by document.write. They would be visable to a user, but not to a bot. This is the reason why adsense won't get counted as a backlink.

Does anyone know if this can be made to work?

<!--#include virtual="http://www.mypage.com/content.html" -->

Giacomo

6:44 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



Then you'll have to generate content on the server side. Look for remote includes.

I don't know about SSI, but with PHP you can use readfile [php.net], e.g.:

<?php readfile("http://example.com/somefile.inc");?>

<added>Are you trying to sell PageRank(tm) [google.com]? Not a very successful business strategy IMHO. ;)</added>

 

Featured Threads

Hot Threads This Week

Hot Threads This Month