chrometweaks.org

Help!! with making a blog on my iPage website?

Click Here To View All Answers...


Got a question, hope someone can answer... Help!! with making a blog on my iPage website? Many thanks for any response. My 2nd question... Hi there can any one tell me how to place an image on the main page that rotates with several others each with individual links..

Anybody who knows the code will be great..

Kind regards and thanks in advance.

Clive..

Comments (158)

That's a good question. I'm not sure what is the answer to your question. I'll do some poking around and get back to you if I find an decent answer. You should email the people at iPage as they probably can help you..

Comment #1

Do you have the codes as you used them..

Did you remember to change the links paths and images to your own..

Did you remember to change the container absolute positions..

Comment #2

I have the JavaScript working without any problems..

Here is what I have.

<td>hello.

<script language="JavaScript" type="text/javascript">.

Var mfsites = [.

['ttc.htm', 'images/manufacturer_canon.gif'],.

['wbu.htm', 'images/manufacturer_fox.gif'],.

['tae/index.htm', 'images/manufacturer_gt_interactive.gif'],.

['leu.htm', 'images/manufacturer_hewlett_packard.gif'],.

['wolfen.htm', 'images/manufacturer_logitech.gif'],.

['wsu.htm', 'images/manufacturer_matrox.gif'],.

['wdu.htm', 'images/manufacturer_microsoft.gif'],.

['WlfTechServ.htm', 'images/manufacturer_sierra.gif'],.

['lec/index.htm', 'images/manufacturer_warner.gif'].

];.

Var mfIe = false;.

If( document.all) {.

MfIe = true;.

}.

Var mfsitesIndex = 0;.

Function mfsitesChange() {.

Var htmlString = '<a target="_blank" href="'+mfsites[mfsitesIndex][0]+'"> <img border="0" src="'+mfsites[mfsitesIndex][1]+'"></a>';.

If( mfIe) {.

Document.all.sites.innerHTML = htmlString;.

}.

Else {.

Document.layers["sites"].document.open();.

Document.layers["sites"].document.write( htmlString);.

Document.layers["sites"].document.close();.

}.

If(mfsitesIndex < mfsites.length - 1).

MfsitesIndex++;.

Else.

MfsitesIndex = 0;.

}.

SetInterval("mfsitesChange()", 5000);.

</script>.

<div id="sites"></div></td>.

I have placed the text ".

Hello.

" as a marker for you. You can of course take the kavascript out as a seperate file to be sourced in thus making editing changes easier.

This post has been edited by.

241.

: 15 May 2004, 10:33..

Comment #3

I ran out of edit time..

To take it further I have this.

<td>hello.

<script language="JavaScript" type="text/javascript">.

Var mfsites = [.

['index.php?manufacturers_id=6', 'images/manufacturer_canon.gif'],.

['index.php?manufacturers_id=4', 'images/manufacturer_fox.gif'],.

['index.php?manufacturers_id=8', 'images/manufacturer_gt_interactive.gif'],.

['index.php?manufacturers_id=9', 'images/manufacturer_hewlett_packard.gif'],.

['index.php?manufacturers_id=5', 'images/manufacturer_logitech.gif'],.

['index.php?manufacturers_id=1', 'images/manufacturer_matrox.gif'],.

['index.php?manufacturers_id=2', 'images/manufacturer_microsoft.gif'],.

['index.php?manufacturers_id=7', 'images/manufacturer_sierra.gif'],.

['index.php?manufacturers_id=3', 'images/manufacturer_warner.gif'].

];.

Var mfIe = false;.

If( document.all) {.

MfIe = true;.

}.

Var mfsitesIndex = 0;.

Function mfsitesChange() {.

Var htmlString = '<a target="_self" href="'+mfsites[mfsitesIndex][0]+'"> <img border="0" src="'+mfsites[mfsitesIndex][1]+'"></a>';.

If( mfIe) {.

Document.all.sites.innerHTML = htmlString;.

}.

Else {.

Document.layers["sites"].document.open();.

Document.layers["sites"].document.write( htmlString);.

Document.layers["sites"].document.close();.

}.

If(mfsitesIndex < mfsites.length - 1).

MfsitesIndex++;.

Else.

MfsitesIndex = 0;.

}.

SetInterval("mfsitesChange()", 5000);.

</script>.

<div id="sites"></div></td>.

Again I have left the ".

Hello.

" as a marker and have given the codes to display the manufacturers images rotating with links and loading in the same window..

The only bit I dont have yet is keeping the session id.

This post has been edited by.

241.

: 15 May 2004, 10:47..

Comment #4

Here it is with the session id.

<td>hello again.

<script language="JavaScript" type="text/javascript">.

Var mfsites = [.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=6')'"> <img border="0" src="images/manufacturer_canon.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=4')'"> <img border="0" src="images/manufacturer_fox.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=8')'"> <img border="0" src="images/manufacturer_gt_interactive.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=9')'"> <img border="0" src="images/manufacturer_hewlett_packard.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=5')'"> <img border="0" src="images/manufacturer_logitech.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=1')'"> <img border="0" src="images/manufacturer_matrox.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=2')'"> <img border="0" src="images/manufacturer_microsoft.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=7')'"> <img border="0" src="images/manufacturer_sierra.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=3')'"> <img border="0" src="images/manufacturer_warner.gif"></a>' ?>'].

];.

Var mfIe = false;.

If( document.all) {.

MfIe = true;.

}.

Var mfsitesIndex = 0;.

Function mfsitesChange() {.

Var htmlString = mfsites[mfsitesIndex];.

If( mfIe) {.

Document.all.sites.innerHTML = htmlString;.

}.

Else {.

Document.layers["sites"].document.open();.

Document.layers["sites"].document.write( htmlString);.

Document.layers["sites"].document.close();.

}.

If(mfsitesIndex < mfsites.length - 1).

MfsitesIndex++;.

Else.

MfsitesIndex = 0;.

}.

SetInterval("mfsitesChange()", 5000);.

</script>.

<div id="sites"></div></td>.

I have given a placement ststement ".

Hello again.

" just to aid location, then it can be removed..

Give me a clue as to whether I am heading in the right direction..

Comment #5

Hi steve tried this also however this is not working..

Comment #6

If you go to.

My development Webpage.

You will see this working under the manufacturers box, I have just slapped this in to allow you to see it, in action so it may be a bit crude at present..

Comment #7

Hi steve I dont know where I'm going wrong.

Example:.

The link is: www.sweet16ssexshop.co.uk/oscommerce-2.2ms2/catalog/index.php?cPath=1_48.

The image is: images/factoryban.jpg.

2. www.sweet16ssexshop.co.uk/oscommerce-2.2ms2/catalog/index.php?cPath2_73.

The image is: images/latexban.jpg.

3. www.sweet16ssexshop.co.uk/oscommerce-2.2ms2/catalog/index.php?cPath=21_99.

The image is: images/crystalban.jpg.

These are all I want to rotate with the links specified and dont know where to put this code any chance you can help with this as the above is all I want to do.

Many thanks clive..

Comment #8

Can you give me your code as you have it..

When entering your links what did you do with the unused selections did you note that the last selection does not have a ,.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=7')'"> <img border="0" src="images/manufacturer_sierra.gif"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=3')'"> <img border="0" src="images/manufacturer_warner.gif"></a>' ?>'].

];.

This should be what you are after.

<td>hello again.

<script language="JavaScript" type="text/javascript">.

Var mfsites = [.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=1_48')'"> <img border="0" src="images/factoryban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath2_73')'"> <img border="0" src="images/latexban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=21_99')'"> <img border="0" src="images/crystalban.jpg"></a>' ?>'].

];.

Var mfIe = false;.

If( document.all) {.

MfIe = true;.

}.

Var mfsitesIndex = 0;.

Function mfsitesChange() {.

Var htmlString = mfsites[mfsitesIndex];.

If( mfIe) {.

Document.all.sites.innerHTML = htmlString;.

}.

Else {.

Document.layers["sites"].document.open();.

Document.layers["sites"].document.write( htmlString);.

Document.layers["sites"].document.close();.

}.

If(mfsitesIndex < mfsites.length - 1).

MfsitesIndex++;.

Else.

MfsitesIndex = 0;.

}.

SetInterval("mfsitesChange()", 5000);.

</script>.

<div id="sites"></div></td>.

Are these banners.

This post has been edited by.

241.

: 15 May 2004, 14:04..

Comment #9

Hi steve ive copy the code and pasted it but I keep getting the following.

Parse error: parse error in /home/httpd/www.sweet16ssexshop.co.uk/html/oscommerce-2.2ms2/catalog/includes/languages/english/index.php on line 13.

Any advice.

Below is the index.php that I'm editing.

With the code you have provided can you see any faults.

[CODE]<?php.

/*.

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Define('TEXT_MAIN', '<table border="0" width="100%"<center><img src="images/topintro.jpg"><br><table border="0" width="100%" cellspacing="5" cellpadding="2"></td></tr></table>.');<td>hello again.

<script language="JavaScript" type="text/javascript">.

Var mfsites = [.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=1_48')'"> <img border="0" src="images/factoryban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath2_73')'"> <img border="0" src="images/latexban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=21_99')'"> <img border="0" src="images/crystalban.jpg"></a>' ?>'],.

];.

Var mfIe = false;.

If( document.all) {.

MfIe = true;.

}.

Var mfsitesIndex = 0;.

Function mfsitesChange() {.

Var htmlString = mfsites[mfsitesIndex];.

If( mfIe) {.

Document.all.sites.innerHTML = htmlString;.

}.

Else {.

Document.layers["sites"].document.open();.

Document.layers["sites"].document.write( htmlString);.

Document.layers["sites"].document.close();.

}.

If(mfsitesIndex < mfsites.length - 1).

MfsitesIndex++;.

Else.

MfsitesIndex = 0;.

}.

SetInterval("mfsitesChange()", 5000);.

</script>.

<div id="sites"></div></td>.

Define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');.

Define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');.

Define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');.

If ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {.

Define('HEADING_TITLE', 'Let\'s See What We Have Here');.

Define('TABLE_HEADING_IMAGE', '');.

Define('TABLE_HEADING_MODEL', 'Model');.

Define('TABLE_HEADING_PRODUCTS', 'Product Name');.

Define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');.

Define('TABLE_HEADING_QUANTITY', 'Quantity');.

Define('TABLE_HEADING_PRICE', 'Price');.

Define('TABLE_HEADING_WEIGHT', 'Weight');.

Define('TABLE_HEADING_BUY_NOW', 'Buy Now');.

Define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');.

Define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');.

Define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');.

Define('TEXT_SHOW', '<b>Show:</b>');.

Define('TEXT_BUY', 'Buy 1 \'');.

Define('TEXT_NOW', '\' now');.

Define('TEXT_ALL_CATEGORIES', 'All Categories');.

Define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');.

} elseif ($category_depth == 'top') {.

Define('HEADING_TITLE', '');.

} elseif ($category_depth == 'nested') {.

Define('HEADING_TITLE', 'Selections');.

}.

?>..

Comment #10

Yes I can.

<table border="0" width="100%"<center><img src="images/topintro.jpg"><br><table border="0" width="100%" cellspacing="5" cellpadding="2"></td></tr></table>.');<td>hello.

You have allready closed and finished you code here.

></table>.');<td>.

Try doing this instead.

Define('TEXT_MAIN', '<img src="images/topintro.jpg"><br><script language="JavaScript" type="text/javascript">.

Var mfsites = [.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=1_48')'"> <img border="0" src="images/factoryban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath2_73')'"> <img border="0" src="images/latexban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=21_99')'"> <img border="0" src="images/crystalban.jpg"></a>' ?>'],.

];.

Var mfIe = false;.

If( document.all) {.

MfIe = true;.

}.

Var mfsitesIndex = 0;.

Function mfsitesChange() {.

Var htmlString = mfsites[mfsitesIndex];.

If( mfIe) {.

Document.all.sites.innerHTML = htmlString;.

}.

Else {.

Document.layers["sites"].document.open();.

Document.layers["sites"].document.write( htmlString);.

Document.layers["sites"].document.close();.

}.

If(mfsitesIndex < mfsites.length - 1).

MfsitesIndex++;.

Else.

MfsitesIndex = 0;.

}.

SetInterval("mfsitesChange()", 5000);.

</script>.

<div id="sites" align="center"></div>');.

Define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');.

Define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');.

Define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');.

Not sure what you are doing with the tables maybe if I could see the page without my code first I could see what you are trying to do with the tables and then sort the code out with table tags if required.

This post has been edited by.

241.

: 15 May 2004, 14:32..

Comment #11

Hi steve still same parse error.

Below new code.

View page www.sweet16ssexshop.co.uk then click to enter the site.

[CODE]<?php.

/*.

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

[CODE]define('TEXT_MAIN', '<img src="images/topintro.jpg"><br>.

<script language="JavaScript" type="text/javascript">.

Var mfsites = [.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=1_48')'"> <img border="0" src="images/factoryban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath2_73')'"> <img border="0" src="images/latexban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=21_99')'"> <img border="0" src="images/crystalban.jpg"></a>' ?>'],.

];.

Var mfIe = false;.

If( document.all) {.

MfIe = true;.

}.

Var mfsitesIndex = 0;.

Function mfsitesChange() {.

Var htmlString = mfsites[mfsitesIndex];.

If( mfIe) {.

Document.all.sites.innerHTML = htmlString;.

}.

Else {.

Document.layers["sites"].document.open();.

Document.layers["sites"].document.write( htmlString);.

Document.layers["sites"].document.close();.

}.

If(mfsitesIndex < mfsites.length - 1).

MfsitesIndex++;.

Else.

MfsitesIndex = 0;.

}.

SetInterval("mfsitesChange()", 5000);.

</script>.

<div id="sites" align="center"></div>');.

Define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');.

Define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');.

Define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');.

If ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {.

Define('HEADING_TITLE', 'Let\'s See What We Have Here');.

Define('TABLE_HEADING_IMAGE', '');.

Define('TABLE_HEADING_MODEL', 'Model');.

Define('TABLE_HEADING_PRODUCTS', 'Product Name');.

Define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');.

Define('TABLE_HEADING_QUANTITY', 'Quantity');.

Define('TABLE_HEADING_PRICE', 'Price');.

Define('TABLE_HEADING_WEIGHT', 'Weight');.

Define('TABLE_HEADING_BUY_NOW', 'Buy Now');.

Define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');.

Define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');.

Define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');.

Define('TEXT_SHOW', '<b>Show:</b>');.

Define('TEXT_BUY', 'Buy 1 \'');.

Define('TEXT_NOW', '\' now');.

Define('TEXT_ALL_CATEGORIES', 'All Categories');.

Define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');.

} elseif ($category_depth == 'top') {.

Define('HEADING_TITLE', '');.

} elseif ($category_depth == 'nested') {.

Define('HEADING_TITLE', 'Selections');.

}.

?>..

Comment #12

I do not think that this is the best method for implementing this code it would be better implemented in the catalog/index.php.

Do you plan to add text into this text are?..

Comment #13

Only in two boxes I want to add one for a newsletter and one for a catalog request (mail order) but other than that just images steve.

I do appreciate you help and time mate!!!!!..

Comment #14

I would just locate this bit of text in catalog/index.php.

<tr>.

         <td class="main"><?php echo TEXT_MAIN; ?></td>.

         </tr>.

And just above it add the javascript to give this.

<script language="JavaScript" type="text/javascript">.

Var mfsites = [.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=1_48')'"> <img border="0" src="images/factoryban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath2_73')'"> <img border="0" src="images/latexban.jpg"></a>' ?>'],.

['<?php echo '<a target="_self" href="'tep_href_link(FILENAME_DEFAULT, 'cPath=21_99')'"> <img border="0" src="images/crystalban.jpg"></a>' ?>'],.

];.

Var mfIe = false;.

If( document.all) {.

MfIe = true;.

}.

Var mfsitesIndex = 0;.

Function mfsitesChange() {.

Var htmlString = mfsites[mfsitesIndex];.

If( mfIe) {.

Document.all.sites.innerHTML = htmlString;.

}.

Else {.

Document.layers["sites"].document.open();.

Document.layers["sites"].document.write( htmlString);.

Document.layers["sites"].document.close();.

}.

If(mfsitesIndex < mfsites.length - 1).

MfsitesIndex++;.

Else.

MfsitesIndex = 0;.

}.

SetInterval("mfsitesChange()", 5000);.

</script>.

   <tr>.

<td><div id="sites" align="center"></div></td>.

 </tr>.

     <tr>.

         <td class="main"><?php echo TEXT_MAIN; ?></td>.

         </tr>..

Comment #15

Hi there can any one tell me how to place an image on the main page that rotates with several others each with individual links..

Anybody who knows the code will be great..

Kind regards and thanks in advance.

Clive..

Comment #16

You may be able to do this using flash..

Could you not get the javascript to work?..

Comment #17


This question was taken from a support group/message board and re-posted here so others can learn from it.