homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

How to make an adwords type include without js
javascript adwords include

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

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?




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

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?


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

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.


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

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.


I think these are your options.


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

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 ;-)


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

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)

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


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

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.


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

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


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

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.


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

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" -->


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

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>

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved