Jump to content

Recommended Posts

Posted

Gidday all, thanx always for the speedy and informative support...I`ll be back..nya ha ha.

 

I have 2 websites, one PC and the other mobile and would like to show the mobile site on my main site.

 

Just wondering how to do this? What <tag>?

 

Hope I`m in the right forum.

 

Im using PHPwebsite.

 

Wayne :unsure:

Posted

Lisa, thanx for the reply. I just got back after working out my problem...<iframe src=...> was the answer.

 

I`ll try to explain for other peoples reference...I wanted to open a PHPwebsite box and in it show my Mobile webpage (that being what people would see when viewing from their mobile phone). It works.

 

Now Im going to add a graphic so it really looks like the mobile page is being seen on a mobile phone.

 

Have a quick look at www.to-to-to.net for ref.

 

Wayne Rock Sign

Posted

Lisa, I think he wants to show regular website viewers what his mobile site looks like so that if they are interested they can view his mobile site on their phones. :unsure:

Posted

Bruce, you hit the nail on the head. Thanx.

 

Thanx Lisa too for the feedback.

 

I have the "working example" as I have referred to it on my website here.

 

However I have got some holes in the graphics blocks I`ve included.

 

Here`s the html I used...

 

<table align=center>

<tr><td>

<img src=http://www.to-to-to.net/phpwebsite/images/top.gif>

</td></tr>

<tr><td>

<img src=http://www.to-to-to.net/phpwebsite/images/vert.gif><iframe src=http://www.to-to-to.net/mobile/ height=310 width=190></iframe><img src=http://www.to-to-to.net/phpwebsite/images/vert.gif>

</td></tr>

<tr><td>

<img src=http://www.to-to-to.net/phpwebsite/images/bottom.gif>

</td></tr>

</table>

 

Any ideas about removing the `holes`?

 

Wayne again Rock Sign

Posted

How about using the BORDER setting in your iframe code to create a tight 10px border around the iframe? This looks quite nice:

 

<table align=center cellpadding="0" cellspacing="0" border="0">

<tr><td>

<img src=http://www.to-to-to.net/phpwebsite/images/top.gif><br>

<iframe name="MOBILE" src=http://www.to-to-to.net/mobile/ height=310 width=190 style="border: 10 solid #0415FB"></iframe><br>

</td></tr>

</table>

 

The top image is yours, sitting directly on the iframe border, looking like it is all one piece.

 

I also added a name to the iframe. Good habit to be in and necessary if you want to have more than one on a page, or link to the iframe.

 

-Samantha

 

 

(edited code as bruce mentioned for anyone else interested!)

Posted

Bruce and Samantha, thanx for the feedback.

 

Have found that viewing in different browsers gives different output Mad!!!

 

Ended up going with this

 

<table align=center cellpadding="0" cellspacing="0" border="0">

<tr><td>

<img src=http://www.to-to-to.net/phpwebsite/images/top.gif><br>

<img src=http://www.to-to-to.net/phpwebsite/images/vert.gif><iframe src=http://www.to-to-to.net/mobile/ height=310 width=186></iframe><img src=http://www.to-to-to.net/phpwebsite/images/vert.gif><br>

<img src=http://www.to-to-to.net/phpwebsite/images/bottom.gif>

</td></tr>

</table>

 

Still getting the gaps at the top...hmmmmm.

 

Wayne Rock Sign

Posted

Yup.... I see that I still had that in there from testing other options.

Thanks for finding it Bruce!

 

I think it's the best option so far and no space at the bottom. Hope it's given a try!

 

-Samantha

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...