• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

Multiple alternate pages in html code

I was just informed how to make a html code that redirects a user to an alternate page. Is there away to have multiple alternates display? For example something like this but the following still only displays the first alternate link

 swfobject.embedSWF("main_Intro.swf", "alternativeContent", "774", "560", "7.0.19.0", false, flashvars, params, attributes);
                </script>
        </head>
        <body>
                <div id="alternativeContent">
                        <a href="http://www.adobe.com">
                                <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash" />
                        </a>
                 </div>
                 <div id="alternativeContent">
                        <a href="http://www.test.com">
                                <img src="http://www.test/images/test.gif" alt="View Page in HTML" />
                        </a>
                 </div>

               
        </body>
</html>

0
natevelli2
Asked:
natevelli2
  • 2
1 Solution
 
brendanmeyerCommented:
do you mean so that both links are displayed on the page if flash cant be loaded
if so put all the link in the same <div id="alternativeContent">
i put a <br> to put the links on different lines

<div id="alternativeContent">
        <a href="http://www.adobe.com">
               <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash" />
        </a>
       <br>
        <a href="http://www.test.com">
                <img src="http://www.test/images/test.gif" alt="View Page in HTML" />
        </a>
</div>
0
 
Ultra_MasterCommented:
Hi,

Try to use the following code to show both options by using just one id:
<div id="alternativeContent"> 
                        <a href="http://www.adobe.com"> 
                                <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash" /> 
                        </a>
<a href="http://www.test.com"> 
                                <img src="http://www.test/images/test.gif" alt="View Page in HTML" /> 
                        </a>

Open in new window

0
 
Ultra_MasterCommented:
followed by </div> of course
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now