Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Adding a dynamic Gem Finder to your page
Jizmak-Rebirth (New Admin) 8/8/2008 10:10 AM EST : Adding a dynamic Gem Finder to your page
Jizmak-Rebirth
Posts: 1157
Zomgawsh Poster

Sorry.. wanted to change the title of the original post in case someone was looking to use this and not help me improve it.

Ok.. This is my latest code.. it will allow color selection and 2 different attributes.  I have fixed the transparency issues in both FF & IE.  Enjoy....

<select id=color name=color> <option selected>All</option> <option value=matches-blue-socket>Blue</option> <option value=matches-red-socket>Red</option> <option value=matches-yellow-socket>Yellow</option> <option value=matches-meta-socket>Meta</option></select> <select id=extra name=extra> <option value="" selected>None</option> <option value=" agility">Agility</option> <option value=" attack-power">Attack Power</option> <option value=" chance-to-increase-attack-speed">Attack Speed</option> <option value=" chance-to-stun">Stun Target</option> <option value=" chance-restore-health">Restore Health</option> <option value=" chance-restore-mana">Restore Mana</option> <option value=" crit-damage">Critical Damage</option> <option value=" crit-rating">Critical Rating</option> <option value=" dodge-rating">Dodge Rating</option> <option value=" healing">Healing</option> <option value=" hit-rating">Hit Rating</option> <option value=" intellect">Intellect</option> <option value=" mana-regen">Mana Regeneration</option> <option value=" melee-damage">Melee Damage</option> <option value=" parry-rating">Parry Rating</option> <option value=" reduced-spellcast-time">Reduced Spellcast Time</option> <option value=" reduced-threat">Reduced Threat</option> <option value=" resilience">Resilience</option> <option value=" resist-all">Resist All</option> <option value=" run-speed">Run Speed</option> <option value=" shield-block-value">Shield Block Value</option> <option value=" spell-crit-rating">Spell Critical Rating</option> <option value=" spell-damage">Spell Damage</option> <option value=" spell-haste-rating">Spell Haste</option> <option value=" spell-hit-rating">Spell Hit Rating</option> <option value=" spell-penetration">Spell Penetration</option> <option value=" spell-reflect">Spell Reflect</option> <option value=" spirit">Spirit</option> <option value=" stamina">Stamina</option> <option value=" strength">Strength</option> <option value=" stun-resist">Stun Resist</option></select><select id=extra1 name=extra1> <option value="" selected>None</option> <option value=" agility">Agility</option> <option value=" attack-power">Attack Power</option> <option value=" chance-to-increase-attack-speed">Attack Speed</option> <option value=" chance-to-stun">Stun Target</option> <option value=" chance-restore-health">Restore Health</option> <option value=" chance-restore-mana">Restore Mana</option> <option value=" crit-damage">Critical Damage</option> <option value=" crit-rating">Critical Rating</option> <option value=" dodge-rating">Dodge Rating</option> <option value=" healing">Healing</option> <option value=" hit-rating">Hit Rating</option> <option value=" intellect">Intellect</option> <option value=" mana-regen">Mana Regeneration</option> <option value=" melee-damage">Melee Damage</option> <option value=" parry-rating">Parry Rating</option> <option value=" reduced-spellcast-time">Reduced Spellcast Time</option> <option value=" reduced-threat">Reduced Threat</option> <option value=" resilience">Resilience</option> <option value=" resist-all">Resist All</option> <option value=" run-speed">Run Speed</option> <option value=" shield-block-value">Shield Block Value</option> <option value=" spell-crit-rating">Spell Critical Rating</option> <option value=" spell-damage">Spell Damage</option> <option value=" spell-haste-rating">Spell Haste</option> <option value=" spell-hit-rating">Spell Hit Rating</option> <option value=" spell-penetration">Spell Penetration</option> <option value=" spell-reflect">Spell Reflect</option> <option value=" spirit">Spirit</option> <option value=" stamina">Stamina</option> <option value=" strength">Strength</option> <option value=" stun-resist">Stun Resist</option></select> <br><a onclick="getgem(); return false;" href="">-=Fetch &amp; Pop Out=- </a><a onclick="getgem2(); return false;" href="">-=Fetch=- </a><br><iframe id=gemframe name=gemframe frameBorder=0 width=250 height=0 allowTransparency></iframe>
<script type=text/javascript>
hold=0
hold2=0
hold3=0
if(navigator.appName == "Microsoft Internet Explorer"){
hold3 = 1
}


function getgem(){
if(hold==0){
hold=1;
gemurl = "<script type='text/javascript' src='http://www.wowgemfinder.com/cut_gems/widget_list/" + parent.document.getElementById("color").value + parent.document.getElementById("extra").value + parent.document.getElementById("extra1").value + "?width=225&height=300'><\/script>";
ExforsysWindow=window.open('','','width=250,height=330');
ExforsysWindow.document.open
ExforsysWindow.(gemurl);
if(hold3==0){
ExforsysWindow.document.close()
}
}else{
gemurl = "<script type='text/javascript' src='http://www.wowgemfinder.com/cut_gems/widget_list/" + parent.document.getElementById("color").value + parent.document.getElementById("extra").value + parent.document.getElementById("extra1").value + "?width=225&height=300'><\/script>";
ExforsysWindow.document.location.href="about:blank";
ExforsysWindow.document.open
ExforsysWindow.(gemurl);
if(hold3==0){
ExforsysWindow.document.close()
}
}
}

function getgem2(){
document.getElementById("gemframe").height = 340;
if(hold2==0){
hold2=1
gemurl = "<script type='text/javascript' src='http://www.wowgemfinder.com/cut_gems/widget_list/" + parent.document.getElementById("color").value + parent.document.getElementById("extra").value + parent.document.getElementById("extra1").value + "?width=225&height=300'><\/script>";
gemframe.document.open()
if(hold3==1){
gemframe.('<body bgcolor="transparent">')
}
gemframe.(gemurl);
if(hold3==0){
gemframe.document.close()
}
}else{
gemurl = "<script type='text/javascript' src='http://www.wowgemfinder.com/cut_gems/widget_list/" + parent.document.getElementById("color").value + parent.document.getElementById("extra").value + parent.document.getElementById("extra1").value + "?width=225&height=300'><\/script>";
gemframe.document.open()
if(hold3==1){
gemframe.('<body bgcolor="transparent">')
}
gemframe.(gemurl);
if(hold3==0){
gemframe.document.close()
}
}
}
function gemcolor(){
}
</script>
</option></select>

TopBottom

Freckle_7 (Guild Admin) 8/8/2008 10:53 AM EST : RE: Adding a dynamic Gem Finder to your page
Freckle_7
Posts: 580
Zomgawsh Poster

Nicely done!

Is there a way to get the mouse-over tooltip functionality of WoWhead.com?
Thanks
___________________________________________________
Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam.
TopBottom

Jizmak-Rebirth (New Admin) 8/18/2008 4:52 AM EST : RE: Adding a dynamic Gem Finder to your page
Jizmak-Rebirth
Posts: 1157
Zomgawsh Poster

Currently www.wowgemfinder.com is down, or at least it is for me.  I am getting a forbidden 404 error when i even try to browse there.

Until they fix thier website this addon will not work, as it pulls the data from thier database and it is currently unaccessable.
TopBottom

Tamaverfir (Guild Admin) 8/19/2008 8:52 PM EST : RE: Adding a dynamic Gem Finder to your page
Tamaverfir
Posts: 221
Fingers of Fury!

First of all, thanks!
Quick question, while im probably doing something wrong on my part, I'm not getting/seeing any results. (Just a large open black box)  Do you know what I'm doing wrong?

-Tama


"So I'm guessing those big red things on the ground that are blowing me up are the bombs?" - Plumb

TopBottom

Jizmak-Rebirth (New Admin) 8/20/2008 2:13 AM EST : RE: Adding a dynamic Gem Finder to your page
Jizmak-Rebirth
Posts: 1157
Zomgawsh Poster

The site that the script references is down and has been down for about a week.  See the post above yours for more info.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%