How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask ATLPROG Your Own Question
ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

I need help correcting code banner ad that is not working

Customer Question

I need help correcting code for a banner ad that is not working correctly. I can copy and paste the code and direct my expert to where the website is that contains the code.
Submitted: 1 year ago.
Category: Programming
Expert:  Chris Baxter replied 1 year ago.

First, we will need some links to the information, and a short description of what you are trying to do. I will have a look and get back to you after that! :)

Customer: replied 1 year ago.
Alrighty! Thank you for your timely response. Does TheDoctor still work there? He used to help me a lot with coding issues - handy guy. Anyway, here's the webpage the js script is on. As you can see the Nutcracker ad at the top has two pieces - when a person initially opens the page it will drop down to the rest of the ad. There are two images - a pencil thin one then the full size one. After the initial opening of the page it should go back to the pencil thin image and if someone rolls over or clicks on it the rest of the ad will drop down. The image is off center and we don't know why there's a white bar between the pencil thin image and the rest of the drop-down ad. Thank you for your help!http://www.codyenterprise.com/We use TownNews for our website and bought this js script from an outside source. However, the outside source is really rude and pretty much calls us stupid for not knowing how to fix the problems we have. Here's the script:
$(document).ready(function(e) {
console.log('ready');});
function setCookie(cname,cvalue,exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires=" + d.toGMTString();
if(document.cookie = cname+"="+cvalue+"; "+expires)
{
document.cookie="adCookieCreated=Yes";
}
}function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i=0; i<ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1);
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}function checkCookie() {
if(getCookie("advertisement")) {
minimize_big_ad();
} else {
setCookie("advertisement","ok",1);
show_big_add();
}
}
function minimize_big_ad()
{
$("#big_ad").slideUp(1000);
$("#show_ad_button").show(1000);
$("#hide_ad_button").hide(1000);
}
function show_big_add()
{
$("#big_ad").slideDown(1000);
$("#show_ad_button").hide(1000);
$("#hide_ad_button").show(1000);
}
function showImage(){
var x = document.getElementById('big_ad').style;
if(x.display=='none'){
show_big_add();
}
else{
minimize_big_ad();
}}
Expert:  Chris Baxter replied 1 year ago.

Unfortunately that one is a little outside my range of availability, however I think theDoc may still be around, if not there are quite a few here who can make that adjustment. (I tend to stick to the C++ and other coding types. I will opt out to let the others get at this one! :)

Customer: replied 1 year ago.
Mr. Baxter - my boss wants to contact the original programmer to have her fix the problem - if you mess it up you should fix it, right? Thank you for your offering of help though. Please cancel my question.