Skip to main content
ruthl35345966
February 16, 2016
解決済み

Why is the the default value of mboxDefault visibility: hidden?

  • February 16, 2016
  • 1 の返信
  • 3063 ビュー
 
     

I'm trying to wrap a banner on a webpage with an mbox div but it disappears once I run it on my local host because the visibility is set to hidden. I know that I can force the visibility to visible by doing this:

<div class="mboxDefault" style="visibility: visible;"> content abc </div> <script type="text/javascript">mboxCreate('mboxabc');</script>

but is that the correct way to go about it? Do I really have to add styling to force it to show my default content? I thought mbox will only set my visibility to hidden when I chose to pull in snippets.

このトピックへの返信は締め切られました。
ベストアンサー kimenw

The style for mboxDefault is hidden at first so default content doesn't show on the screen before the Target content returns. The response from Target triggers the visibility to change on the mboxDefault div (if no offer response returned), or the mboxDefault div is replaced by the offer content div.

Are you making calls out to Target on your localhost and getting responses? If so, then the visibility shouldn't be a problem.

 

-Kimen Warner

Group Product Manager, Adobe Target

1 の返信

kimenwAdobe Employee回答
Adobe Employee
February 16, 2016

The style for mboxDefault is hidden at first so default content doesn't show on the screen before the Target content returns. The response from Target triggers the visibility to change on the mboxDefault div (if no offer response returned), or the mboxDefault div is replaced by the offer content div.

Are you making calls out to Target on your localhost and getting responses? If so, then the visibility shouldn't be a problem.

 

-Kimen Warner

Group Product Manager, Adobe Target