Jump to content

Code help please


PrymlUrg

Recommended Posts

I am having a little trouble with this code.  I am able to get the iframe to work correctly.  However, the link is always the same.  The linked pages are just to be able to tell when it is working correctly.  I have tried different variations but I keep getting the yahoo page to open.  Is the something wrong with the way the code is written?

<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
	<td width="100%" valign="top">
		{assign var="page_hdr01_text" value="{lang mkey='store'}"}
		{include file="page_hdr01.tpl"}
        </td>
    </tr>
    <tr>
        <td class="module_detail" width="100%" height="100%" valign="top">
		{if $user.level == '2' or $user.level =='1'}
		<iframe  src="http://www.gmail.com" name="storeIframe" align="center" scrolling="auto" frameborder="0" width="100%" height="900" style="text-align: center;">
		</iframe>
		{else}
		<iframe  src="http://www.yahoo.com" name="storeIframe" align="center" scrolling="auto" frameborder="0" width="100%" height="900" style="text-align: center;">
		<center>Sorry, your browser doesn\'t support iframes.</center>
		</iframe>
		{/if}
	</td>
</tr>
</table>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.