Neopets - Dropdown Dailies

By nungryscpro Last update Jul 28, 2009 — Installed 1,416 times.

Great Script -- A Question

in
Subscribe to Great Script -- A Question 5 posts, 2 voices



PalGuy Scriptwright
FirefoxWindows

First i want to start off by saying you did a wonderful job on this script. I love how easy and organized it is. One question i have that sort of ties into this script is that i want to change the nav images to others that i have on my server. I can do it with all the others but when i try changing the 'dailies" img in this script it doesn't work. Please write back if you could help

- Thanks

 
nungryscpro Script's Author
FirefoxWindows

How have you changed the other images?

If you already changed the images then you can remove line 107

videoDiv.innerHTML = '<img src="'+dailiesImg+'" height="38" width="64"><ul class="dropdown"></ul>';

or replace the line with:
videoDiv.getElementsByTagName('a')[0].removeAttribute('href');

The difference between the 2 is that with removing the line, if you click "Video" it will still go to the NeoVision page. If you've replaced the image to say "Links" or something else then you wouldn't want it to link to that page, that's why you'd replace the line.

 
PalGuy Scriptwright
FirefoxWindows

thanks for replying. What im trying to do is change the nav image of "dailies" to this
http://foxgpt.freehostia.com/neo/dalies.png

Basically my script that im trying to make is a cleaner interface. I want to implement your dropdown dailies but i have made my own nav images i would like to use. You can see all of them here

http://foxgpt.freehostia.com/neo/

Im certain i would have to edit this line

var dailiesImg =
and i have tried --- but i cant get it to work
var dailiesImg ="http://foxgpt.freehostia.com/neo/dalies.png";

 
nungryscpro Script's Author
FirefoxWindows

There are two lines in the script that can define dailiesImg.

If you change the first one to

var dailiesImg ="http://foxgpt.freehostia.com/neo/dalies.png";
then the var at the beginning should be
var menu_color = 'white';

You can change both just to be sure... or remove them and edit the line

videoDiv.innerHTML = '<img src="'+dailiesImg+'" height="38" width="64"><ul class="dropdown"></ul>';

to read
videoDiv.innerHTML = '<img src="http://foxgpt.freehostia.com/neo/dalies.png" height="38" width="64"><ul class="dropdown"></ul>';

 
PalGuy Scriptwright
FirefoxWindows

Thanks so much, i finally got it working :)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel