Neopets bandwidth switch

From Computers Wiki
Jump to navigationJump to search

The Neopets bandwidth switch has largely been removed from the website, but is still accessible in at least one place. It seems like it got ripped out of the 2007 redesign versions of world pages when they gained 2021 redesign versions, except for the Deep Catacombs.

Switch component

As of the time of writing, this can be seen on the 2007 redesign version of the Deep Catacombs.[1] Like most pages that have 2021 redesign versions, the previous version can be viewed by appending a trailing slash to the filename portion of the URL. Interestingly, this one page that still has the switch is the one world page without graphics for its new version.

This example is from the Deep Catacombs. It looks like the destination for the bandwidth switch redirect is manually set; trailing slashes and query parameters don't appear in the redirect target.

<div align="center">
<div style="width: 204px; border:2px solid #f4f4f4;">
<div style="width: 200px; border:2px solid #c9c9c9;">
<table align="center" border=0 width=200 cellpadding=0 cellspacing=0 style="border:1px solid black;" cols=2>

<tr><td align="center" valign="center" colspan=2><div style="padding:3px;"><B>Flash or HTML</B>&nbsp;<a href="javascript:;" onClick="window.open('/bandwidthhelp.phtml','bd','status=yes,menubar=no,scrollbars=yes,resizable=yes,toolbar=no,scrolling=yes,width=520,height=380'); return false;"><img src="https://images.neopets.com/help/question_mark.png" border=0 width=13 height=13 style="vertical-align:baseline;"></a></div></td>
</tr>

<tr><td align="right" valign="bottom" style="padding-right:3px;padding-bottom:6px;">
<a href="/process_bandwidthchoice.phtml?type=high&link=art/index.phtml">
<img src="https://images.neopets.com/images/select_flash.gif" width=90 height=50 border=0></a></td>
<td align="left" valign="bottom" style="padding-left:3px;padding-bottom:6px;">
<a href="/process_bandwidthchoice.phtml?type=low&link=art/index.phtml">
<img src="https://images.neopets.com/images/select_html_fade.gif" width=90 height=50 border=0></a></td>
</tr>

</table>
</div>
</div>
</div>

/process_bandwidthchoice.phtml

Redirects are done as a 302 with no body. Requests seem to take a long while (2.66 to 3.34 seconds in my testing). This takes two GET parameters:

type
Optional. Set to high for Flash, or lowfor HTML. Unless this is set to one of these two values exactly, no change is made.
link
Optional. Where to redirect after changing the bandwidth setting, such as art/index.phtml. Defaults to https://www.neopets.com if unset.

/bandwidthhelp.phtml

Check out that commented-out speed comparison table!

<style type=text/css>
A{COLOR:#000099;FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:9pt;TEXT-DECORATION:none}
TD,P,body{FONT-FAMILY:verdana,arial,helvetica;FONT-SIZE:9pt;}
A:hover{COLOR:#990000;}
.smallfont, .sf{FONT-SIZE:7.5pt;}
</style>
<title>Bandwidth Help</title>
<table border=0 cellpadding=2 cellspacing=0><tr><td>
<b>Flash or HTML?</b><br>
<br>Flash can be more interesting (animations, sounds and high detail), but 
it may not work on older computers.  Also, some browsers may have problems viewing 
Flash if they don't have this free 
<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=English" target="_blank"><b>plug-in</b></a>.
<br><br>
Our HTML maps are slightly smaller in size, and more compatible with older computers.
<br><br>
To change your settings, either click on one of the options (Flash or HTML) 
 or go to the <b>Preferences</b> page and select Flash or HTML there.
<br><br>[ <a href="javascript:self.close()"><b>Close</b></a> ]
</td>
<td valign="top">&nbsp;<br><br>
<img src="//images.neopets.com/new_shopkeepers/1793.gif" width=150 height=150 align="right">
</td>
</tr>
</table>

<!--<p>
<table width=280 border=1 align=center cellpadding=3 cellspacing=0>
<tr>
<td>
&nbsp;
</td>
<td align=center>
<b>HTML Maps</b>
</td>
<td align=center>
<b>Flash Maps</b>
</td>
</tr>

<tr>
<td align=center>
<b>Size</b>
</td>
<td>
85K (approx)
</td>
<td>
240K (approx)
</td>
</tr>

<tr>
<td align=center><b>Modem</b>
</td>
<td>10 seconds
</td>
<td>15 seconds
</td>
</tr>

<tr>
<td align=center>
<b>DSL</b>
</td>
<td>1 second
</td>
<td>10 seconds
</td>
</tr>
</table>-->

References