waynemac Posted October 13, 2004 Posted October 13, 2004 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 Quote
LisaJill Posted October 13, 2004 Posted October 13, 2004 I'm not really understanding what you're describing, but you may consider an iframe for doing this. =) Quote
waynemac Posted October 13, 2004 Author Posted October 13, 2004 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 Quote
LisaJill Posted October 13, 2004 Posted October 13, 2004 make sure you test this from your phone; I'm fairly confident that most mobile phones will not read iframe tags. =) Quote
TCH-Bruce Posted October 13, 2004 Posted October 13, 2004 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. Quote
waynemac Posted October 13, 2004 Author Posted October 13, 2004 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 Quote
TCH-Bruce Posted October 13, 2004 Posted October 13, 2004 Wayne, I was able to get rid of the gap at the top but not the gap at the bottom. Here is the code I used. Quote
Samrc Posted October 14, 2004 Posted October 14, 2004 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!) Quote
waynemac Posted October 14, 2004 Author Posted October 14, 2004 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 Quote
TCH-Bruce Posted October 14, 2004 Posted October 14, 2004 Wayne, Samantha's solution works perfectly. There was an extra > that I removed. Copy and paste this into your page and see if it works for you. Quote
Samrc Posted October 14, 2004 Posted October 14, 2004 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 Quote
TCH-Bruce Posted October 14, 2004 Posted October 14, 2004 Yup.... I see that I still had that in there from testing other options.Thanks for finding it Bruce! Sometimes an extra pair of eyes helps. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.