Create a server-side include file containing the AdRotator code listed in Fig. 25.3. Write an ASP that performs the same action as the AdRotator and uses this server-side include file.

What will be an ideal response?


The first table is config.txt, the second table is redirect.asp and the third table is rotate.asp.



```

1 REDIRECT redirect.asp

2 WIDTH 54

3 HEIGHT 36

4 BORDER 1

5 *

6 /images/us.gif

7 http://www.odci.gov/cia/publications/factbook/us.html

8 United States Information

9 20

10 /images/france.gif

11 http://www.odci.gov/cia/publications/factbook/fr.html

12 France Information

13 20

14 /images/germany.gif

15 http://www.odci.gov/cia/publications/factbook/gm.html

16 Germany Information

17 20

18 /images/italy.gif

19 http://www.odci.gov/cia/publications/factbook/it.html

20 Italy Information

21 20

22 /images/spain.gif

23 http://www.odci.gov/cia/publications/factbook/sp.html

24 Spain Information

25 20

26 <% Call Response.Redirect( Request( "url" ) ) %>

27 <% @LANGUAGE = VBScript %>

28 <% Option Explicit %>

29 <% ' rotate.asp %>

30

31

32

33

34 AdRotator Example</TI</p> <div class="pt-2 text-end"> <span class="badge bg-secondary">Computer Science & Information Technology</span> </div> </div> </div> </div> </div> <div class="py-5 bg-body-tertiary"> <div class="container"> <h3 class="text-center mb-5">You might also like to view...</h3> <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3"> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area mb-2"> <p class="card-text">Multimedia software includes all of the following EXCEPT ________</p> <p class="card-text">A) animation software B) audio-editing software C) image-editing software D) utility software</p> </div> <div class="d-flex justify-content-between align-items-center"> <div class="btn-group"> <a href="https://sciemce.com/qa/YQuESoFlnBsm" class="btn btn-sm btn-dark px-3">View</a> </div> <span class="badge bg-secondary">Computer Science & Information Technology</span> </div> </div> </div> </div> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area-ad"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5615111067852633" crossorigin="anonymous"></script> <!-- Square 5 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5615111067852633" data-ad-slot="7303124573" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> </div> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area mb-2"> <p class="card-text">A report is more meaningful if its data is ________ and sorted</p> <p class="card-text">Fill in the blank(s) with correct word</p> </div> <div class="d-flex justify-content-between align-items-center"> <div class="btn-group"> <a href="https://sciemce.com/qa/l9Tcv4ccr8Tw" class="btn btn-sm btn-dark px-3">View</a> </div> <span class="badge bg-secondary">Computer Science & Information Technology</span> </div> </div> </div> </div> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area-ad"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5615111067852633" crossorigin="anonymous"></script> <!-- Square 5 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5615111067852633" data-ad-slot="7303124573" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> </div> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area mb-2"> <p class="card-text">In Excel, what does a small funnel icon represent?</p> <p class="card-text">A) A data table has been created. B) A sort has been applied. C) A filter has been applied. D) Excel does not use a funnel icon.</p> </div> <div class="d-flex justify-content-between align-items-center"> <div class="btn-group"> <a href="https://sciemce.com/qa/YyynWv2NFkf8" class="btn btn-sm btn-dark px-3">View</a> </div> <span class="badge bg-secondary">Computer Science & Information Technology</span> </div> </div> </div> </div> <div class="col"> <div class="card shadow-sm"> <div class="card-body"> <div class="card-area mb-2"> <p class="card-text">What component is most likely to be installed in a PC, is considered primary storage, and typically stores the operating system, as well as its applications? </p> <p class="card-text">A. floppy drive B. tape drive C. hard disk drive D. optical drive </p> </div> <div class="d-flex justify-content-between align-items-center"> <div class="btn-group"> <a href="https://sciemce.com/qa/ejadaZ356mB8" class="btn btn-sm btn-dark px-3">View</a> </div> <span class="badge bg-secondary">Computer Science & Information Technology</span> </div> </div> </div> </div> </div> </div> </div> </main> <footer class="text-body-secondary py-4"> <div class="container"> <div class="row"> <div class="col-md-6"> <p class="mb-1 text-center">Sciemce: Your Gateway to Quick, Reliable Answers.</p> </div> <div class="col-md-6"> <p class="mb-1 text-center"> <a href="https://sciemce.com/honor/" class="text-decoration-none">Honor Code</a> | <a href="https://sciemce.com/privacy/" class="text-decoration-none">Privacy Policy</a> </p> </div> </div> </div> </footer> <script src="https://sciemce.com/assets/js/bootstrap.bundle.min.js"></script> </body> </html>